diff options
author | lovetox <philipp@hoerist.com> | 2022-01-23 15:10:05 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2022-01-23 15:10:05 +0300 |
commit | c208c06321f5c6691b3d3166e917ee915c8425d9 (patch) | |
tree | bf8af646e0c3d4e3b32ddf063add402e94fb9dc3 /gajim/gui_interface.py | |
parent | 10e4f811f83422945ef5010ce95d7b97840cb9cd (diff) |
Interface: Handle muc-added event in MainWindow
Diffstat (limited to 'gajim/gui_interface.py')
-rw-r--r-- | gajim/gui_interface.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/gajim/gui_interface.py b/gajim/gui_interface.py index 09e5af3f6..443b5e93a 100644 --- a/gajim/gui_interface.py +++ b/gajim/gui_interface.py @@ -67,7 +67,6 @@ from gajim.common.events import FileCompleted from gajim.common.events import FileHashError from gajim.common.events import FileProgress from gajim.common.events import FileError -from gajim.common.events import MucAdded from gajim.common.helpers import ask_for_status_message from gajim.common.structs import OutgoingMessage from gajim.common.i18n import _ @@ -119,10 +118,6 @@ class Interface: self._create_core_handlers_list() self._register_core_handlers() - app.ged.register_event_handler('muc-added', - ged.CORE, - self._on_muc_added) - self.instances = {} for acc in app.connections: @@ -469,13 +464,6 @@ class Interface: app.app.activate_action('start-chat', GLib.Variant('s', str(jid))) @staticmethod - def _on_muc_added(event: MucAdded) -> None: - if app.window.chat_exists(event.account, JID.from_string(event.jid)): - return - - app.window.add_group_chat(event.account, JID.from_string(event.jid)) - - @staticmethod def create_account(account: str, username: str, domain: str, @@ -536,9 +524,6 @@ class Interface: app.plugin_manager.register_modules_for_account( app.connections[account]) - app.ged.register_event_handler( - 'muc-added', ged.CORE, self._on_muc_added) - # update variables self.instances[account] = { 'infos': {}, |