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

Fixes #3397
This commit is contained in:
mathieui 2020-05-25 21:50:11 +02:00
parent d5aab27349
commit 9f6e9f3e34

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):