[gnome-games/sudoku-tube] Update contact presence only if it's recorded
- From: Zhang Sen <zhangsen src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-games/sudoku-tube] Update contact presence only if it's recorded
- Date: Tue, 23 Jun 2009 07:14:09 -0400 (EDT)
commit 554df6f210a3980e35329e8ef0139476245eae44
Author: Zhang Sen <zh jesse gmail com>
Date: Tue Jun 23 19:13:21 2009 +0800
Update contact presence only if it's recorded
gnome-sudoku/src/lib/contact_selector.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gnome-sudoku/src/lib/contact_selector.py b/gnome-sudoku/src/lib/contact_selector.py
index 5ede8f3..54489a4 100644
--- a/gnome-sudoku/src/lib/contact_selector.py
+++ b/gnome-sudoku/src/lib/contact_selector.py
@@ -145,9 +145,11 @@ class ContactList:
def _contact_presence_changed_cb(self, presences):
for handle, presence in presences.iteritems():
- logger.debug("presence changed: %s->%s" %
- (self._contact_list[handle].alias, presence[1]))
if handle in self._contact_list:
+ logger.debug("presence changed, %s: %s->%s" % (
+ self._contact_list[handle].alias,
+ self._contact_list[handle].presence[1],
+ presence[1]))
self._update_contact_presence(handle, presence)
else:
# request its info and consequently add it to the list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]