From 841c774d238924940b932e13b97f9171a44fc92c Mon Sep 17 00:00:00 2001 From: noonien Date: Mon, 2 Sep 2013 14:35:54 +0200 Subject: [PATCH] Use send_message instead of pushing an event and print at own when sending remotely (when possibe). Fixes #7457 --- src/remote_control.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/remote_control.py b/src/remote_control.py index a602d1d0c..c77d4ff03 100644 --- a/src/remote_control.py +++ b/src/remote_control.py @@ -442,11 +442,9 @@ class SignalObject(dbus.service.Object): ctrl = gajim.interface.msg_win_mgr.search_control(jid, connected_account) if ctrl: - ctrl.print_conversation(message, frm='outgoing') - - gajim.nec.push_outgoing_event(MessageOutgoingEvent(None, - account=connected_account, jid=jid, message=message, - keyID=keyID, type_=type_, control=ctrl)) + ctrl.send_message(message) + else: + gajim.nec.push_outgoing_event(MessageOutgoingEvent(None, account=connected_account, jid=jid, message=message, keyID=keyID, type_=type_, control=ctrl)) return DBUS_BOOLEAN(True) return DBUS_BOOLEAN(False)