Software /
code /
prosody-modules
Diff
mod_push2/push2.md @ 6233:1c16bb49f6f6
mod_push2: rename chat to filter
author | Stephen Paul Weber <singpolyma@singpolyma.net> |
---|---|
date | Fri, 11 Apr 2025 20:08:56 -0500 |
parent | 6216:2f2539ce8f3b |
line wrap: on
line diff
--- a/mod_push2/push2.md Wed Apr 09 19:05:42 2025 +0200 +++ b/mod_push2/push2.md Fri Apr 11 20:08:56 2025 -0500 @@ -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.