changeset 440:167c3e198f73

contact list: fixed crash on update when profile is not specified
author Goffi <goffi@goffi.org>
date Sat, 07 Mar 2020 00:05:50 +0100
parents 12d188cb1206
children ff548846df91
files cagou/plugins/plugin_wid_contact_list.py
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cagou/plugins/plugin_wid_contact_list.py	Sat Mar 07 00:05:49 2020 +0100
+++ b/cagou/plugins/plugin_wid_contact_list.py	Sat Mar 07 00:05:50 2020 +0100
@@ -170,7 +170,12 @@
             log.debug("full contact list update")
             self.layout.clear_widgets()
             for bare_jid, data in self.items_sorted.items():
-                wid = CLContactItem(profile=profile, data=data, jid=bare_jid, main_wid=self)
+                wid = CLContactItem(
+                    profile=data['profile'],
+                    data=data,
+                    jid=bare_jid,
+                    main_wid=self,
+                )
                 self.layout.add_widget(wid)
                 self._wid_map[(profile, bare_jid)] = wid
         elif type_ == C.UPDATE_MODIFY: