fix 'gajim-remote open_chat' command for minimized gropchats. Fixes #6107
This commit is contained in:
parent
a7ddfd18e2
commit
6c82994924
1 changed files with 6 additions and 0 deletions
|
@ -475,6 +475,8 @@ class SignalObject(dbus.service.Object):
|
||||||
break
|
break
|
||||||
# jid is in roster
|
# jid is in roster
|
||||||
elif contact:
|
elif contact:
|
||||||
|
minimized_control = \
|
||||||
|
jid in gajim.interface.minimized_controls[acct]
|
||||||
connected_account = acct
|
connected_account = acct
|
||||||
break
|
break
|
||||||
# we send the message to jid not in roster, because account is
|
# 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:
|
if connected_account is None and first_connected_acct:
|
||||||
connected_account = first_connected_acct
|
connected_account = first_connected_acct
|
||||||
|
|
||||||
|
if minimized_control:
|
||||||
|
gajim.interface.roster.on_groupchat_maximized(None, jid,
|
||||||
|
connected_account)
|
||||||
|
|
||||||
if connected_account:
|
if connected_account:
|
||||||
gajim.interface.new_chat_from_jid(connected_account, jid, message)
|
gajim.interface.new_chat_from_jid(connected_account, jid, message)
|
||||||
# preserve the 'steal focus preservation'
|
# preserve the 'steal focus preservation'
|
||||||
|
|
Loading…
Add table
Reference in a new issue