From 6c829949245f13a63ddd66f468e6aa2b64d39500 Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Wed, 15 Dec 2010 12:17:34 +0300 Subject: [PATCH] fix 'gajim-remote open_chat' command for minimized gropchats. Fixes #6107 --- src/remote_control.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/remote_control.py b/src/remote_control.py index 1ada41a14..3255297e7 100644 --- a/src/remote_control.py +++ b/src/remote_control.py @@ -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'