comparison 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
comparison
equal deleted inserted replaced
1343:ec9e58357a07 1344:1679ac59f701
302 widget = sat_widgets.ClickableText(group, header=header + ' ') 302 widget = sat_widgets.ClickableText(group, header=header + ' ')
303 content.append(widget) 303 content.append(widget)
304 urwid.connect_signal(widget, 'click', self._groupClicked) 304 urwid.connect_signal(widget, 'click', self._groupClicked)
305 if not folded: 305 if not folded:
306 self._buildEntities(content, jids) 306 self._buildEntities(content, jids)
307 not_in_roster = set(self._cache).difference(self._roster).difference(self._specials) 307 not_in_roster = set(self._cache).difference(self._roster).difference(self._specials).difference((self.whoami.bare,))
308 if not_in_roster: 308 if not_in_roster:
309 content.append(urwid.Divider('-')) 309 content.append(urwid.Divider('-'))
310 self._buildEntities(content, not_in_roster) 310 self._buildEntities(content, not_in_roster)
311 311
312 return urwid.ListBox(content) 312 return urwid.ListBox(content)