Commit 9f6e9f3e authored by mathieui's avatar mathieui

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

Fixes #3397
parent d5aab273
......@@ -1504,6 +1504,7 @@ class MucTab(ChatTab):
def on_close(self):
super().on_close()
if self.joined:
self.leave_room('')
@command_args_parser.quoted(1, 1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment