Mercurial > libervia-backend
comparison sat_frontends/quick_frontend/quick_app.py @ 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 | 003b8b4b56a7 |
children | 19ab67e28822 |
comparison
equal
deleted
inserted
replaced
2788:4a05e67a8025 | 2789:d350f4571d82 |
---|---|
851 @param from_jid_s (unicode): JID of a contact or C.ENTITY_ALL | 851 @param from_jid_s (unicode): JID of a contact or C.ENTITY_ALL |
852 @param state (unicode): new state | 852 @param state (unicode): new state |
853 @param profile (unicode): current profile | 853 @param profile (unicode): current profile |
854 """ | 854 """ |
855 from_jid = jid.JID(from_jid_s) | 855 from_jid = jid.JID(from_jid_s) |
856 for widget in self.widgets.getWidgets(quick_chat.QuickChat, profiles=(profile,)): | 856 for widget in self.widgets.getWidgets(quick_chat.QuickChat, target=from_jid.bare, |
857 profiles=(profile,)): | |
857 widget.onChatState(from_jid, state, profile) | 858 widget.onChatState(from_jid, state, profile) |
858 | 859 |
859 def notify( | 860 def notify( |
860 self, | 861 self, |
861 type_, | 862 type_, |