summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Buquet <pep@bouah.net>2020-05-25 21:56:07 +0200
committerMaxime Buquet <pep@bouah.net>2020-05-25 21:56:07 +0200
commitec6c1bf81a2f2c96fedae310379255759a507c33 (patch)
tree54b385b660a07774b616bb681695404b1ed91745
parent314bea4471820a659b9a90cf33b6c22dd991bcc5 (diff)
parent9f6e9f3e34d3c4dae1ac4e7ed4f6703b0c115c6f (diff)
downloadpoezio-ec6c1bf81a2f2c96fedae310379255759a507c33.tar.gz
poezio-ec6c1bf81a2f2c96fedae310379255759a507c33.tar.bz2
poezio-ec6c1bf81a2f2c96fedae310379255759a507c33.tar.xz
poezio-ec6c1bf81a2f2c96fedae310379255759a507c33.zip
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
-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):