Commit ec6c1bf8 authored by Maxime Buquet's avatar Maxime Buquet

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
parents 314bea44 9f6e9f3e
...@@ -1504,7 +1504,8 @@ class MucTab(ChatTab): ...@@ -1504,7 +1504,8 @@ class MucTab(ChatTab):
def on_close(self): def on_close(self):
super().on_close() super().on_close()
self.leave_room('') if self.joined:
@command_args_parser.quoted(1, 1) @command_args_parser.quoted(1, 1)
def command_query(self, args): def command_query(self, args):
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