diff 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
line wrap: on
line diff
--- a/src/browser/libervia_main.py	Mon May 26 14:25:56 2014 +0200
+++ b/src/browser/libervia_main.py	Thu May 29 15:51:26 2014 +0200
@@ -680,6 +680,8 @@
         if lib_wid is not None:
             lib_wid.printMessage(_from, msg, extra)
         else:
+            if not self.contact_panel.isContactInRoster(other.bare):
+                self.contact_panel.updateContact(other.bare, {}, [C.GROUP_NOT_IN_ROSTER])
             # The message has not been shown, we must indicate it
             self.contact_panel.setContactMessageWaiting(other.bare, True)