fix 'gajim-remote open_chat' command for minimized gropchats. Fixes #6107
This commit is contained in:
parent
a7ddfd18e2
commit
6c82994924
|
@ -475,6 +475,8 @@ class SignalObject(dbus.service.Object):
|
|||
break
|
||||
# jid is in roster
|
||||
elif contact:
|
||||
minimized_control = \
|
||||
jid in gajim.interface.minimized_controls[acct]
|
||||
connected_account = acct
|
||||
break
|
||||
# we send the message to jid not in roster, because account is
|
||||
|
@ -488,6 +490,10 @@ class SignalObject(dbus.service.Object):
|
|||
if connected_account is None and first_connected_acct:
|
||||
connected_account = first_connected_acct
|
||||
|
||||
if minimized_control:
|
||||
gajim.interface.roster.on_groupchat_maximized(None, jid,
|
||||
connected_account)
|
||||
|
||||
if connected_account:
|
||||
gajim.interface.new_chat_from_jid(connected_account, jid, message)
|
||||
# preserve the 'steal focus preservation'
|
||||
|
|
Loading…
Reference in New Issue