From 9f6e9f3e34d3c4dae1ac4e7ed4f6703b0c115c6f Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 25 May 2020 21:50:11 +0200 Subject: Only send an unavailable presence on closing a muc if we are joined Fixes #3397 --- poezio/tabs/muctab.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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): -- cgit v1.2.3