From d2261775c170f02c9d31f4f829ddc2fe9b713aaf Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Tue, 10 Oct 2006 16:01:15 +0000 Subject: [PATCH] ask os_info for observers. fixes #2476. the same happens (and cannot be fixed) for invisible, but how often we ask os info on invisible people? (and also that can betray their invisibility eventhough it is their client that hsould not reply if they are invisible. anyways..) --- src/vcard.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/vcard.py b/src/vcard.py index ca6571702..c1d86afb1 100644 --- a/src/vcard.py +++ b/src/vcard.py @@ -296,8 +296,10 @@ class VcardWindow: gajim.connections[self.account].request_last_status_time(self.contact.jid, self.contact.resource) - # do not wait for os_info if contact is not connected - if self.contact.show in ('offline', 'error'): + # do not wait for os_info if contact is not connected or has error + # additional check for observer is needed, as show is offline for him + if self.contact.show in ('offline', 'error')\ + and not self.contact.is_observer(): self.os_info_arrived = True else: # Request os info if contact is connected gobject.idle_add(gajim.connections[self.account].request_os_info,