bugfix when we redraw an agent iter and when an agent becomes offline
This commit is contained in:
parent
33fe77ff8a
commit
c827489dff
|
@ -377,6 +377,7 @@ class plugin:
|
|||
user1.priority, user1.keyID)
|
||||
luser.append(user1)
|
||||
user1.resource = resource
|
||||
if user1.jid.find('@') > 0: # It's not an agent
|
||||
if old_show == 0 and new_show > 1:
|
||||
if not user1.jid in self.roster.newly_added[account]:
|
||||
self.roster.newly_added[account].append(user1.jid)
|
||||
|
@ -391,8 +392,8 @@ class plugin:
|
|||
self.roster.newly_added[account].remove(user1.jid)
|
||||
self.roster.redraw_jid(user1.jid, account)
|
||||
if not self.queues[account].has_key(jid):
|
||||
gobject.timeout_add(5000, self.roster.really_remove_user, user1,\
|
||||
account)
|
||||
gobject.timeout_add(5000, self.roster.really_remove_user, \
|
||||
user1, account)
|
||||
user1.show = array[1]
|
||||
user1.status = array[2]
|
||||
user1.priority = priority
|
||||
|
|
|
@ -204,7 +204,9 @@ class Roster_window:
|
|||
prio = u.priority
|
||||
user = u
|
||||
for iter in iters:
|
||||
if self.plugin.queues[account].has_key(jid):
|
||||
if jid.find("@") <= 0: # It's an agent
|
||||
img = self.pixbufs[user.show]
|
||||
elif self.plugin.queues[account].has_key(jid):
|
||||
img = self.pixbufs['message']
|
||||
else:
|
||||
if user.sub != 'both':
|
||||
|
|
Loading…
Reference in New Issue