diff options
Diffstat (limited to 'poezio/core/core.py')
-rw-r--r-- | poezio/core/core.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/core/core.py b/poezio/core/core.py index 2e0e0acb..5e3e912b 100644 --- a/poezio/core/core.py +++ b/poezio/core/core.py @@ -1277,7 +1277,7 @@ class Core: if reason is None: reason = '\x195}You left the room\x193}' for tab in self.get_tabs(tabs.PrivateTab): - if tab.name.startswith(room_name): + if tab.name.full.startswith(room_name): tab.deactivate(reason=reason) def enable_private_tabs(self, room_name: str, @@ -1288,7 +1288,7 @@ class Core: if reason is None: reason = '\x195}You joined the room\x193}' for tab in self.get_tabs(tabs.PrivateTab): - if tab.name.startswith(room_name): + if tab.name.full.startswith(room_name): tab.activate(reason=reason) def on_user_changed_status_in_private(self, jid: JID, status: str) -> None: |