changeset b7a8000e4680 in /home/hg/repos/gajim

author: noonien <fsm...@kondorgulasch.de>
branches: gajim_0.16
details:http://hg.gajim.org/gajim?cmd=changeset;node=b7a8000e4680
description: Use send_message instead of pushing an event and print at own when 
sending remotely (when possibe). Fixes #7457

diffstat:

 src/remote_control.py |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (18 lines):

diff -r 2d2309e64faf -r b7a8000e4680 src/remote_control.py
--- a/src/remote_control.py     Mon Sep 09 17:36:21 2013 +0200
+++ b/src/remote_control.py     Mon Sep 02 14:35:54 2013 +0200
@@ -442,11 +442,9 @@
             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)
_______________________________________________
Commits mailing list
Commits@gajim.org
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to