Mercurial > libervia-backend
diff frontends/src/quick_frontend/quick_chat.py @ 501:e9634d2e7b38
core, quick_frontend, primitivus, wix: Contacts List refactoring phase 1:
- QuickContactManagement is not used anymore and will be removed, ContactList + Core are used instead
- disconnected contacts are now displayed in Primitivus (M-d to show/hide them)
- avatars are temporary unavailable in wix
- new bridge method: getContactsFromGroup
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 25 Sep 2012 00:58:34 +0200 |
parents | 2a072735e459 |
children | f98bef71a918 |
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_chat.py Wed Sep 05 00:19:32 2012 +0200 +++ b/frontends/src/quick_frontend/quick_chat.py Tue Sep 25 00:58:34 2012 +0200 @@ -99,7 +99,7 @@ def _get_nick(self, jid): """Return nick of this jid when possible""" - return jid.resource if self.type == "group" else (self.host.CM.getAttr(jid,'nick') or self.host.CM.getAttr(jid,'name') or jid.node) + return jid.resource if self.type == "group" else (self.host.contact_list.getCache(jid,'nick') or self.host.contact_list.getCache(jid,'name') or jid.node) def printMessage(self, from_jid, msg, profile, timestamp): """Print message in chat window. Must be implemented by child class"""