clients_icons. Do not display the icon for the clients who have 'remote-server-not-found' status. Fixes #42
This commit is contained in:
@@ -345,6 +345,11 @@ class ClientsIconsPlugin(GajimPlugin):
|
|||||||
|
|
||||||
iter_ = roster._get_contact_iter(iq_obj.jid, iq_obj.conn.name, contact,
|
iter_ = roster._get_contact_iter(iq_obj.jid, iq_obj.conn.name, contact,
|
||||||
roster.model)[0]
|
roster.model)[0]
|
||||||
|
|
||||||
|
if contact.show == 'error':
|
||||||
|
self.set_icon(roster.model, iter_, self.renderer_num, None)
|
||||||
|
return
|
||||||
|
|
||||||
if contact != iq_obj.contact:
|
if contact != iq_obj.contact:
|
||||||
# higest contact changed
|
# higest contact changed
|
||||||
if roster.model[iter_][self.renderer_num] is not None:
|
if roster.model[iter_][self.renderer_num] is not None:
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[info]
|
[info]
|
||||||
name: Clients icons
|
name: Clients icons
|
||||||
short_name: clients_icons
|
short_name: clients_icons
|
||||||
version: 2
|
version: 2.1
|
||||||
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