Merge branch 'fix-double-unavailable-presence' into 'master'

Only send an unavailable presence on closing a muc if we are joined

Closes #3397

See merge request poezio/poezio!125
This commit is contained in:
Maxime Buquet 2020-05-25 21:56:07 +02:00
commit ec6c1bf81a

View file

@ -1504,7 +1504,8 @@ class MucTab(ChatTab):
def on_close(self):
super().on_close()
self.leave_room('')
if self.joined:
self.leave_room('')
@command_args_parser.quoted(1, 1)
def command_query(self, args):