Commit 27e582d9 authored by Dicson's avatar Dicson

ClientsIconsPlugin. Fix icon if contact in several groups

parent 6f15b1b5
......@@ -371,11 +371,12 @@ class ClientsIconsPlugin(GajimPlugin):
if not child_iters:
if roster.model[child_iters[0]][self.renderer_num] is None:
for iter_ in child_iters:
if roster.model[iter_][self.renderer_num] is None:
caps = contact.client_caps._node
if not caps:
caps = self.check_jid(jid)
self.set_icon(roster.model, child_iters[0], self.renderer_num,
self.set_icon(roster.model, iter_, self.renderer_num,
......@@ -510,8 +511,9 @@ class ClientsIconsPlugin(GajimPlugin):
# zeroconf
iter_ = roster._get_contact_iter(iq_obj.jid,, contact,
iters = roster._get_contact_iter(iq_obj.jid,, contact,
iter_ = iters[0]
if == 'error':
self.set_icon(roster.model, iter_, self.renderer_num, None)
......@@ -539,6 +541,7 @@ class ClientsIconsPlugin(GajimPlugin):
if caps_from_jid:
caps = caps_from_jid
for iter_ in iters:
self.set_icon(roster.model, iter_, self.renderer_num, caps)
def gc_presence_received(self, iq_obj):
name: Clients icons
short_name: clients_icons
version: 4.1
version: 4.2
description: Shows the client icons in the roster
and in groupchats.
For icons in tooltip support, you need to install Gajim r14117 or above.
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