Mercurial > libervia-backend
diff frontends/src/wix/chat.py @ 507:f98bef71a918
frontends, core, plugin XEP-0045: leave implementation + better nick change
- memory: individual entity cache can be deleted
- plugin XEP-0045: nick change are now detected and userChangedNick signal is sent instead of joined/left
- plugin XEP-0045: leave implementation
- frontends: userChangedNick signal management
- Primitivus: an alert is shown in notification bar in case of error in sendMessage
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 28 Sep 2012 00:26:24 +0200 |
parents | e9634d2e7b38 |
children | 886754295efe |
line wrap: on
line diff
--- a/frontends/src/wix/chat.py Thu Sep 27 00:54:42 2012 +0200 +++ b/frontends/src/wix/chat.py Fri Sep 28 00:26:24 2012 +0200 @@ -142,18 +142,18 @@ for nick in nicks: self.present_panel.presents.replace(nick) - def replaceUser(self, nick): + def replaceUser(self, nick, show_info=True): """Add user if it is not in the group list""" debug (_("Replacing user %s") % nick) if self.type != "group": error (_("[INTERNAL] trying to replace user for a non group chat window")) return - QuickChat.replaceUser(self, nick) + QuickChat.replaceUser(self, nick, show_info) self.present_panel.presents.replace(nick) - def removeUser(self, nick): + def removeUser(self, nick, show_info=True): """Remove a user from the group list""" - QuickChat.removeUser(self, nick) + QuickChat.removeUser(self, nick, show_info) self.present_panel.presents.remove(nick) def setSubject(self, subject):