Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikos Kouremenos <kourem@gmail.com>2006-10-10 20:01:15 +0400
committerNikos Kouremenos <kourem@gmail.com>2006-10-10 20:01:15 +0400
commitd2261775c170f02c9d31f4f829ddc2fe9b713aaf (patch)
treef473409dd7ab919ba78790133ef7af378cbde60b /src
parent9448a325c7d9fba69cdc856baf1e037764728f00 (diff)
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..)
Diffstat (limited to 'src')
-rw-r--r--src/vcard.py6
1 files 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,