diff frontends/src/primitivus/contact_list.py @ 2141:35762e9ce8b9

primitivus: fixed resources diplay in contact list
author Goffi <goffi@goffi.org>
date Mon, 06 Feb 2017 20:51:56 +0100
parents 7aa58b7a47e2
children 8b37a62336c3
line wrap: on
line diff
--- a/frontends/src/primitivus/contact_list.py	Mon Feb 06 20:47:36 2017 +0100
+++ b/frontends/src/primitivus/contact_list.py	Mon Feb 06 20:51:56 2017 +0100
@@ -236,7 +236,7 @@
             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')