request jabber:iq:last only when contact is offline. Fixes #4434
This commit is contained in:
parent
3f88abaf27
commit
cc685f1c24
|
@ -342,7 +342,8 @@ class VcardWindow:
|
||||||
if not self.contact.status:
|
if not self.contact.status:
|
||||||
self.contact.status = ''
|
self.contact.status = ''
|
||||||
|
|
||||||
# Request list time status
|
# Request list time status only if contact is offline
|
||||||
|
if self.contact.show == 'offline':
|
||||||
if self.gc_contact:
|
if self.gc_contact:
|
||||||
j, r = gajim.get_room_and_nick_from_fjid(self.real_jid)
|
j, r = gajim.get_room_and_nick_from_fjid(self.real_jid)
|
||||||
gajim.connections[self.account].request_last_status_time(j, r,
|
gajim.connections[self.account].request_last_status_time(j, r,
|
||||||
|
|
Loading…
Reference in New Issue