Philipp Hörist pushed to branch mainwindow at gajim / gajim
Commits: 11d61a25 by lovetox at 2021-02-06T20:55:15+01:00 Fix some events
- - - - -
2 changed files:
- gajim/chat_control_base.py - gajim/groupchat_control.py
Changes:
===================================== gajim/chat_control_base.py ===================================== @@ -34,7 +34,6 @@ from gi.repository import GLib from gi.repository import Gio
-from gajim.common import events from gajim.common import app from gajim.common import helpers from gajim.common import ged @@ -42,7 +41,6 @@ from gajim.common.i18n import _ from gajim.common.nec import EventHelper from gajim.common.helpers import AdditionalDataDict -from gajim.common.helpers import event_filter from gajim.common.contacts import GC_Contact from gajim.common.const import Chatstate from gajim.common.structs import OutgoingMessage @@ -56,8 +54,6 @@ from gajim.gui.dialogs import PastePreviewDialog from gajim.gui.message_input import MessageInputTextView from gajim.gui.util import at_the_end -from gajim.gui.util import get_show_in_roster -from gajim.gui.util import get_show_in_systray from gajim.gui.util import get_hardware_key_codes from gajim.gui.util import get_builder from gajim.gui.util import generate_account_badge
===================================== gajim/groupchat_control.py ===================================== @@ -1173,7 +1173,6 @@ def _on_muc_nickname_changed(self, event): self.roster.remove_contact(nick) self.roster.add_contact(new_nick)
- @event_filter(['account', 'room_jid']) def _on_muc_user_status_show_changed(self, event): nick = event.properties.muc_nickname status = event.properties.status @@ -1422,7 +1421,6 @@ def _on_muc_destroyed(self, event): if self._wait_for_destruction: self._close_control()
- @event_filter(['account', 'jid=room_jid']) def _on_message_sent(self, event): if not event.message: return @@ -1482,7 +1480,6 @@ def send_message(self, message, xhtml=None, process_commands=True): self.msg_textview.get_buffer().set_text('') self.msg_textview.grab_focus()
- @event_filter(['account', 'room_jid']) def _on_message_error(self, event): self.conv_textview.show_error(event.message_id, event.error)
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/11d61a25d744aa7940cf9c4b6992c9955...