primitivus: fixed resources diplay in contact list

This commit is contained in:
Goffi 2017-02-06 20:51:56 +01:00
commit 6a8102b109

View file

@ -236,7 +236,7 @@ class ContactList(PrimitivusWidget, QuickContactList):
markup_extra = []
if self.contact_list.show_resources:
for resource in self.contact_list.getCache(entity, C.CONTACT_RESOURCES):
resource_disp = ('resource_main' if resource == self.getCache(entity, C.CONTACT_MAIN_RESOURCE) else 'resource', "\n " + resource)
resource_disp = ('resource_main' if resource == self.contact_list.getCache(entity, C.CONTACT_MAIN_RESOURCE) else 'resource', "\n " + resource)
markup_extra.append(resource_disp)
if self.contact_list.show_status:
status = self.contact_list.getCache(jid.JID('%s/%s' % (entity, resource)), 'status')