diff --git a/src/common/connection.py b/src/common/connection.py index 18d42c40f1b617dc95aa6e4799e414aa69e19616..6bbea26ae07bbe9eed54fd2a23003b4e1560d011 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -771,7 +771,7 @@ class Connection(CommonConnection, ConnectionHandlers): self._nec_agent_info_received) gajim.ged.remove_event_handler('message-outgoing', ged.OUT_CORE, self._nec_message_outgoing) - gajim.ged.remove_event_handler('message-outgoing', ged.OUT_CORE, + gajim.ged.remove_event_handler('gc-message-outgoing', ged.OUT_CORE, self._nec_gc_message_outgoing) def get_config_values_or_default(self): diff --git a/src/remote_control.py b/src/remote_control.py index 64b25a19c25630cae60120cc8d3a5534c13c4a7b..5cdbd93bfffd0643c5819b339b140c36d9eb7161 100644 --- a/src/remote_control.py +++ b/src/remote_control.py @@ -479,7 +479,6 @@ class SignalObject(dbus.service.Object): connected_account = self._get_account_for_groupchat(account, room_jid) if connected_account: connection = gajim.connections[connected_account] - connection.send_gc_message(room_jid, message) gajim.nec.push_outgoing_event(GcMessageOutgoingEvent(None, account=connected_account, jid=room_jid, message=message)) return DBUS_BOOLEAN(True)