fixme: check if the contact is in not in the roster
This commit is contained in:
parent
2554613339
commit
1c1ffd1611
|
@ -690,9 +690,9 @@ class Chat:
|
||||||
childs[5].connect('activate', self.on_start_chat_activate, text)
|
childs[5].connect('activate', self.on_start_chat_activate, text)
|
||||||
childs[6].connect('activate',
|
childs[6].connect('activate',
|
||||||
self.on_join_group_chat_menuitem_activate, text)
|
self.on_join_group_chat_menuitem_activate, text)
|
||||||
if self.plugin.roster.contacts[self.account].has_key(text):
|
u = self.plugin.roster.contacts[self.account][text][0]
|
||||||
#and\#FIXME: check if it's in 'not in the roster' and then don't hide
|
if self.plugin.roster.contacts[self.account].has_key(text) and \
|
||||||
#not self.plugin.roster.contacts[self.account][text].show == 'not in the roster':
|
'not in the roster' not in u.groups:
|
||||||
childs[7].hide()
|
childs[7].hide()
|
||||||
else:
|
else:
|
||||||
childs[7].connect('activate', self.on_add_to_roster_activate, text)
|
childs[7].connect('activate', self.on_add_to_roster_activate, text)
|
||||||
|
|
Loading…
Reference in New Issue