From 0b783f68d665d829ac036fc34cf9d4eaf57154af Mon Sep 17 00:00:00 2001 From: JC Brand Date: Sun, 19 Apr 2020 21:49:45 +0200 Subject: MUC: Add support for presence probes (fixes #1535) The following patch allows Prosody to respond to `probe` presences and send out the probed occupant's current presence. This is based on line 17.3 in XEP-0045: A MUC service MAY handle presence probes sent to the room JID or an occupant JID (e.g, these might be sent by an occupant's home server to determine if the room is still online or to synchronize presence information if the user or the user's server has gone offline temporarily or has started sharing presence again, as for instance when Stanza Interception and Filtering Technology (XEP-0273) is used). --- spec/scansion/muc_presence_probe.scs | 115 +++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 spec/scansion/muc_presence_probe.scs (limited to 'spec') diff --git a/spec/scansion/muc_presence_probe.scs b/spec/scansion/muc_presence_probe.scs new file mode 100644 index 00000000..ffd61dba --- /dev/null +++ b/spec/scansion/muc_presence_probe.scs @@ -0,0 +1,115 @@ +# #1535 Let MUCs respond to presence probes + +[Client] Romeo + jid: user@localhost + password: password + +[Client] Juliet + jid: user2@localhost + password: password + +[Client] Mercutio + jid: user3@localhost + password: password + +----- + +Romeo connects + +Romeo sends: + + + + +Romeo receives: + + + + + + + + +Romeo receives: + + +# Disable presences for non-mods +Romeo sends: + + + + + http://jabber.org/protocol/muc#roomconfig + + + moderator + + + + + +Romeo receives: + + + +# Juliet connects, and joins the room +Juliet connects + +Juliet sends: + + + + +Juliet receives: + + +Juliet receives: + + +# Romeo probes Juliet + +Romeo sends: + + + + +Romeo receives: + + + + + + +# Romeo makes Mercutio a member and registers his nickname + +Romeo sends: + + + + + + +Romeo receives: + + + + + + +Romeo receives: + + + +# Romeo probes Mercutio, even though he's unavailable + +Romeo sends: + + + + +Romeo receives: + + + + + -- cgit v1.2.3