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:
parent
b65325c1d6
commit
7d2d97fa75
1 changed files with 59 additions and 7 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue