diff frontends/src/primitivus/contact_list.py @ 1344:1679ac59f701 frontends_multi_profiles

primitivus (contact list): removed our own bare jid from not_in_roster
author Goffi <goffi@goffi.org>
date Tue, 24 Feb 2015 18:21:03 +0100
parents e31a07a5614d
children 017270e6eea4
line wrap: on
line diff
--- a/frontends/src/primitivus/contact_list.py	Tue Feb 24 18:20:34 2015 +0100
+++ b/frontends/src/primitivus/contact_list.py	Tue Feb 24 18:21:03 2015 +0100
@@ -304,7 +304,7 @@
                 urwid.connect_signal(widget, 'click', self._groupClicked)
             if not folded:
                 self._buildEntities(content, jids)
-        not_in_roster = set(self._cache).difference(self._roster).difference(self._specials)
+        not_in_roster = set(self._cache).difference(self._roster).difference(self._specials).difference((self.whoami.bare,))
         if not_in_roster:
             content.append(urwid.Divider('-'))
             self._buildEntities(content, not_in_roster)