Software /
code /
prosody-modules
Diff
mod_push2/push2.md @ 6245:ea58d2893afb draft default tip
Merge update
author | Trần H. Trung <xmpp:trần.h.trung@trung.fun> |
---|---|
date | Tue, 29 Apr 2025 23:27:06 +0700 |
parent | 6233:1c16bb49f6f6 |
line wrap: on
line diff
--- a/mod_push2/push2.md Fri Apr 11 23:19:21 2025 +0700 +++ b/mod_push2/push2.md Tue Apr 29 23:27:06 2025 +0700 @@ -16,9 +16,9 @@ <client>https://push.example.com/adlfkjadafdasf</client> <match profile="urn:xmpp:push2:match:archived-with-body"> <grace>144</grace> - <chat jid="somemuc@conference.example.com"> + <filter jid="somemuc@conference.example.com"> <mention/> - </chat> + </filter> <send xmlns="urn:xmpp:push2:send:notify-only:0"/> </match> </enable> @@ -30,7 +30,7 @@ The `<match/>` and `<send/>` elements define what profiles to use for matching stanzas and sending notifications. These are described later in this document. -The optional `<chat/>` child of `<match/>` allows extra filtering of pushes for only specific chats. No specified filters means muted, do not push. `<mention/>` means push on mentions, `<reply/>` means push on replies. +The optional `<filter/>` child of `<match/>` allows extra filtering of pushes for only specific chats. No specified filters means muted, do not push. `<mention/>` means push on mentions, `<reply/>` means push on replies. The optional `<grace/>` child of `<match/>` allows specifying a "grace period" in seconds where activity on another session by the same user (such as sending a message) will temporarily pause sending push notifications.