Commit e94a9af0 authored by Bronko's avatar Bronko

[clients_icons] convert variable to int before using as dictionary index

fixes: TypeError: '<' not supported between instances of 'str' and 'int'
parent ec782a5e
......@@ -153,10 +153,10 @@ class ClientsIconsPlugin(GajimPlugin):
for contact in contacts:
if contact.resource:
num_resources += 1
if contact.priority in contacts_dict:
if int(contact.priority) in contacts_dict:
contacts_dict[contact.priority] = [contact]
contacts_dict[int(contact.priority)] = [contact]
contact_keys = sorted(contacts_dict.keys())
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment