clients_icons. fix a bug with self contacts
This commit is contained in:
@@ -193,9 +193,10 @@ class ClientsIconsPlugin(GajimPlugin):
|
|||||||
roster.model)[0]
|
roster.model)[0]
|
||||||
if contact != iq_obj.contact:
|
if contact != iq_obj.contact:
|
||||||
# higest contact changed
|
# higest contact changed
|
||||||
caps = contact.client_caps._node
|
if roster.model[iter_][self.renderer_num] is not None:
|
||||||
self.set_icon(roster.model, iter_, self.renderer_num, caps)
|
caps = contact.client_caps._node
|
||||||
return
|
self.set_icon(roster.model, iter_, self.renderer_num, caps)
|
||||||
|
return
|
||||||
caps = None
|
caps = None
|
||||||
tag = iq_obj.stanza.getTags('c')
|
tag = iq_obj.stanza.getTags('c')
|
||||||
if tag:
|
if tag:
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[info]
|
[info]
|
||||||
name: Clients icons
|
name: Clients icons
|
||||||
short_name: clients_icons
|
short_name: clients_icons
|
||||||
version: 0.2
|
version: 0.3
|
||||||
description: Shows the client icons in the roster
|
description: Shows the client icons in the roster
|
||||||
and in groupchats.
|
and in groupchats.
|
||||||
authors = Denis Fomin <fominde@gmail.com>
|
authors = Denis Fomin <fominde@gmail.com>
|
||||||
|
|||||||
Reference in New Issue
Block a user