plugin XEP-0045: Notification on mention:

If a mention is detected in a MUC (`groupchat`, not DM), a notification is sent.
This commit is contained in:
Goffi 2026-06-26 23:03:24 +02:00
commit 7d2d97fa75

View file

@ -2218,6 +2218,14 @@ class Memory:
data_format.serialise(extra) if extra else "",
C.PROF_KEY_ALL if is_global else client.profile,
)
log.debug(
f"Notification sent:\n"
f" title: {title!r}\n"
f" body_plain: {body_plain!r}\n"
f" type: {type_.value}\n"
f" priority: {priority.value}\n"
f" profile: {C.PROF_KEY_ALL if is_global else client.profile}"
)
def _get_notifications(self, filters_s: str, profile_key: str) -> defer.Deferred:
"""Fetch notifications for bridge with given filters and profile key.