From f12b04bd0ba1de9ebd21ea8168b7bfcfed2dff8e Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 27 Feb 2021 12:53:43 +0100 Subject: [PATCH] XEP-0405: Fix a bug in nodes returned by join_channel Yay tests! --- slixmpp/plugins/xep_0405/mix_pam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slixmpp/plugins/xep_0405/mix_pam.py b/slixmpp/plugins/xep_0405/mix_pam.py index 2b132526..7d87158e 100644 --- a/slixmpp/plugins/xep_0405/mix_pam.py +++ b/slixmpp/plugins/xep_0405/mix_pam.py @@ -70,7 +70,7 @@ class XEP_0405(BasePlugin): iq['client_join']['mix_join'].append(sub) result = await iq.send(**iqkwargs) result_nodes = {sub['node'] for sub in result['client_join']['mix_join']} - return result_nodes.difference(subscribe) + return subscribe.difference(result_nodes) async def leave_channel(self, room: JID, *, ito: Optional[JID] = None,