XEP-0405: Fix a bug in nodes returned by join_channel

Yay tests!
This commit is contained in:
mathieui 2021-02-27 12:53:43 +01:00
parent 059cb290d8
commit f12b04bd0b

View file

@ -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,