summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2020-05-25 21:50:11 +0200
committermathieui <mathieui@mathieui.net>2020-05-25 21:50:11 +0200
commit9f6e9f3e34d3c4dae1ac4e7ed4f6703b0c115c6f (patch)
tree6314d735efd2304d6de86a50b59e2f1a593fc44f
parentd5aab2734996e3f7caf31c19816bf23b384d63e0 (diff)
downloadpoezio-9f6e9f3e34d3c4dae1ac4e7ed4f6703b0c115c6f.tar.gz
poezio-9f6e9f3e34d3c4dae1ac4e7ed4f6703b0c115c6f.tar.bz2
poezio-9f6e9f3e34d3c4dae1ac4e7ed4f6703b0c115c6f.tar.xz
poezio-9f6e9f3e34d3c4dae1ac4e7ed4f6703b0c115c6f.zip
Only send an unavailable presence on closing a muc if we are joined
Fixes #3397
-rw-r--r--poezio/tabs/muctab.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/poezio/tabs/muctab.py b/poezio/tabs/muctab.py
index 21e8997d..ace0df99 100644
--- a/poezio/tabs/muctab.py
+++ b/poezio/tabs/muctab.py
@@ -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):