Use send_message instead of pushing an event and print at own when sending remotely (when possibe). Fixes #7457
This commit is contained in:
parent
fa6d3c16dd
commit
841c774d23
|
@ -442,11 +442,9 @@ class SignalObject(dbus.service.Object):
|
||||||
ctrl = gajim.interface.msg_win_mgr.search_control(jid,
|
ctrl = gajim.interface.msg_win_mgr.search_control(jid,
|
||||||
connected_account)
|
connected_account)
|
||||||
if ctrl:
|
if ctrl:
|
||||||
ctrl.print_conversation(message, frm='outgoing')
|
ctrl.send_message(message)
|
||||||
|
else:
|
||||||
gajim.nec.push_outgoing_event(MessageOutgoingEvent(None,
|
gajim.nec.push_outgoing_event(MessageOutgoingEvent(None, account=connected_account, jid=jid, message=message, keyID=keyID, type_=type_, control=ctrl))
|
||||||
account=connected_account, jid=jid, message=message,
|
|
||||||
keyID=keyID, type_=type_, control=ctrl))
|
|
||||||
|
|
||||||
return DBUS_BOOLEAN(True)
|
return DBUS_BOOLEAN(True)
|
||||||
return DBUS_BOOLEAN(False)
|
return DBUS_BOOLEAN(False)
|
||||||
|
|
Loading…
Reference in New Issue