Mercurial > libervia-backend
diff frontends/src/primitivus/primitivus @ 907:cd02f5ef30df
primitivus: display chat states (with symbols) for MUC participants
author | souliane <souliane@mailoo.org> |
---|---|
date | Mon, 17 Mar 2014 13:24:55 +0100 |
parents | 30fd34309949 |
children | b12706d164d7 |
line wrap: on
line diff
--- a/frontends/src/primitivus/primitivus Sun Mar 16 21:25:49 2014 +0100 +++ b/frontends/src/primitivus/primitivus Mon Mar 17 13:24:55 2014 +0100 @@ -604,24 +604,6 @@ #MISC CALLBACKS# - def chatStateReceived(self, from_jid_s, state, profile): - """Signal observer to display a contact chat state - @param from_jid_s: contact who sent his new state - @state: state - @profile: current profile - """ - if not self.check_profile(profile): - return - - if from_jid_s == "@ALL@": - for win in self.chat_wins: - self.chat_wins[win].updateChatState(state) - return - - from_bare = JID(from_jid_s).bare - if from_bare in self.chat_wins: - self.chat_wins[from_bare].updateChatState(state) - def setStatusOnline(self, online=True, show="", statuses={}): if not online or not statuses: return