From 663028421f6905cb9ee68fe795af71a60564ae53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sch=C3=A4fer?= Date: Wed, 22 Dec 2021 13:06:32 +0100 Subject: mod_roster: pass correct username to roster-item-removed The other invocations use it that way, and the only listener in trunk which uses it (in mod_presence) expects it that way. Passing the username of the JID from the removed entry causes incorrect unavailable presence stanzas to be sent, allegedly kicking people off MUCs. Fixes #1121. --- spec/scansion/issue1121.scs | 75 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 spec/scansion/issue1121.scs (limited to 'spec') diff --git a/spec/scansion/issue1121.scs b/spec/scansion/issue1121.scs new file mode 100644 index 00000000..68d728b9 --- /dev/null +++ b/spec/scansion/issue1121.scs @@ -0,0 +1,75 @@ +# When removing roster contact, Prosody should send directed "unavailable" presence but sends global unavailable presence + +[Client] Romeo + jid: romeo@localhost + password: password + +[Client] Juliet + jid: juliet@localhost + password: password + +----- + +Romeo connects + +Romeo sends + + +Romeo receives + + +Juliet connects + +Juliet sends + + +Juliet receives + + +Romeo sends + + +Romeo receives + + +Juliet receives + + +Juliet sends + + +Romeo receives + + +Juliet sends + + +Juliet receives + + +Romeo receives + + +Romeo sends + + +Juliet receives + + +Romeo receives + + +Juliet sends + + + + + + +Juliet receives + + +Romeo receives + + +Romeo disconnects -- cgit v1.2.3