Mercurial > libervia-web
comparison src/browser/libervia_main.py @ 455:05e98b8d9f02
browser side: display messages from contacts not in roster
author | souliane <souliane@mailoo.org> |
---|---|
date | Thu, 29 May 2014 15:51:26 +0200 |
parents | 7b6506372466 |
children | da2a7f2b34c9 |
comparison
equal
deleted
inserted
replaced
454:3ef6ce200c27 | 455:05e98b8d9f02 |
---|---|
678 lib_wid = self.getLiberviaWidget(panels.ChatPanel, other, ignoreOtherTabs=False) | 678 lib_wid = self.getLiberviaWidget(panels.ChatPanel, other, ignoreOtherTabs=False) |
679 self.displayNotification(_from, msg) | 679 self.displayNotification(_from, msg) |
680 if lib_wid is not None: | 680 if lib_wid is not None: |
681 lib_wid.printMessage(_from, msg, extra) | 681 lib_wid.printMessage(_from, msg, extra) |
682 else: | 682 else: |
683 if not self.contact_panel.isContactInRoster(other.bare): | |
684 self.contact_panel.updateContact(other.bare, {}, [C.GROUP_NOT_IN_ROSTER]) | |
683 # The message has not been shown, we must indicate it | 685 # The message has not been shown, we must indicate it |
684 self.contact_panel.setContactMessageWaiting(other.bare, True) | 686 self.contact_panel.setContactMessageWaiting(other.bare, True) |
685 | 687 |
686 def _presenceUpdateCb(self, entity, show, priority, statuses): | 688 def _presenceUpdateCb(self, entity, show, priority, statuses): |
687 entity_jid = JID(entity) | 689 entity_jid = JID(entity) |