From 96818f60b37a0c1384e5ce69550d28d76c8b10a6 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Tue, 12 Feb 2013 19:31:35 +0100
Subject: [PATCH] check that contacts are not in "not in roster" group when we
 receive a RIE stanza. Fixes #7289

---
 src/dialogs.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/dialogs.py b/src/dialogs.py
index 0173bc2176..48d32af3bf 100644
--- a/src/dialogs.py
+++ b/src/dialogs.py
@@ -3452,7 +3452,7 @@ class RosterItemExchangeWindow:
                 is_in_roster = True
                 contact = gajim.contacts.get_contact_with_highest_priority(
                     self.account, jid)
-                if not contact:
+                if not contact or _('Not in Roster') in contact.groups:
                     is_in_roster = False
                 name = self.exchange_list[jid][0]
                 num_list = len(self.exchange_list[jid][1])
-- 
GitLab