Mercurial > libervia-backend
comparison 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 |
comparison
equal
deleted
inserted
replaced
506:2e43c74815ad | 507:f98bef71a918 |
---|---|
140 """ | 140 """ |
141 QuickChat.setPresents(self, nicks) | 141 QuickChat.setPresents(self, nicks) |
142 for nick in nicks: | 142 for nick in nicks: |
143 self.present_panel.presents.replace(nick) | 143 self.present_panel.presents.replace(nick) |
144 | 144 |
145 def replaceUser(self, nick): | 145 def replaceUser(self, nick, show_info=True): |
146 """Add user if it is not in the group list""" | 146 """Add user if it is not in the group list""" |
147 debug (_("Replacing user %s") % nick) | 147 debug (_("Replacing user %s") % nick) |
148 if self.type != "group": | 148 if self.type != "group": |
149 error (_("[INTERNAL] trying to replace user for a non group chat window")) | 149 error (_("[INTERNAL] trying to replace user for a non group chat window")) |
150 return | 150 return |
151 QuickChat.replaceUser(self, nick) | 151 QuickChat.replaceUser(self, nick, show_info) |
152 self.present_panel.presents.replace(nick) | 152 self.present_panel.presents.replace(nick) |
153 | 153 |
154 def removeUser(self, nick): | 154 def removeUser(self, nick, show_info=True): |
155 """Remove a user from the group list""" | 155 """Remove a user from the group list""" |
156 QuickChat.removeUser(self, nick) | 156 QuickChat.removeUser(self, nick, show_info) |
157 self.present_panel.presents.remove(nick) | 157 self.present_panel.presents.remove(nick) |
158 | 158 |
159 def setSubject(self, subject): | 159 def setSubject(self, subject): |
160 """Set title for a group chat""" | 160 """Set title for a group chat""" |
161 QuickChat.setSubject(self, subject) | 161 QuickChat.setSubject(self, subject) |