Skip to content
Snippets Groups Projects
Commit 6adf7a17 authored by noonien's avatar noonien
Browse files

Use send_message instead of pushing an event and print at own when sending...

Use send_message instead of pushing an event and print at own when sending remotely (when possibe). Fixes #7457
parent 7dcc30e6
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment