impromptu: wait for subject instead of self-presence

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2022-03-01 00:36:45 +01:00 committed by mathieui
parent ee82c6717d
commit cdf38ace9f

View file

@ -1057,9 +1057,8 @@ class Core:
await self.invite(jid, room, force_mediated=True)
self.information('Invited %s to %s' % (', '.join(jids), room.bare), 'Info')
# TODO: Use xep_0045's async join_muc_wait somehow instead?
self.xmpp.add_event_handler(
'muc::%s::self-presence' % room.bare,
'muc::%s::groupchat_subject' % room.bare,
join_callback,
disposable=True,
)