changeset 2789:d350f4571d82

quick frontend (app): fixed filtering for chat state notifications
author Goffi <goffi@goffi.org>
date Sat, 19 Jan 2019 23:27:59 +0100
parents 4a05e67a8025
children 19ab67e28822
files sat_frontends/quick_frontend/quick_app.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sat_frontends/quick_frontend/quick_app.py	Sat Jan 19 23:27:22 2019 +0100
+++ b/sat_frontends/quick_frontend/quick_app.py	Sat Jan 19 23:27:59 2019 +0100
@@ -853,7 +853,8 @@
         @param profile (unicode): current profile
         """
         from_jid = jid.JID(from_jid_s)
-        for widget in self.widgets.getWidgets(quick_chat.QuickChat, profiles=(profile,)):
+        for widget in self.widgets.getWidgets(quick_chat.QuickChat, target=from_jid.bare,
+                                              profiles=(profile,)):
             widget.onChatState(from_jid, state, profile)
 
     def notify(