We do not need to check that, it's already done in conn_handlers._MucAdminCB()
This commit is contained in:
parent
5689daf66b
commit
5742d2e1e7
|
@ -2504,12 +2504,11 @@ class GroupchatConfigWindow:
|
||||||
def affiliation_list_received(self, list):
|
def affiliation_list_received(self, list):
|
||||||
'''Fill the affiliation treeview'''
|
'''Fill the affiliation treeview'''
|
||||||
for jid in list:
|
for jid in list:
|
||||||
if list[jid].has_key('affiliation'):
|
affiliation = list[jid]['affiliation']
|
||||||
affiliation = list[jid]['affiliation']
|
if affiliation not in self.affiliation_labels.keys():
|
||||||
if affiliation not in self.affiliation_labels.keys():
|
# Unknown affiliation or 'none' affiliation, do not show it
|
||||||
# Unknown affiliation or 'none' affiliation, do not show it
|
continue
|
||||||
continue
|
self.list_init[affiliation][jid] = list[jid]
|
||||||
self.list_init[affiliation][jid] = list[jid]
|
|
||||||
tv = self.affiliation_treeview[affiliation]
|
tv = self.affiliation_treeview[affiliation]
|
||||||
model = tv.get_model()
|
model = tv.get_model()
|
||||||
reason = ''
|
reason = ''
|
||||||
|
|
Loading…
Reference in New Issue