Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAjay Garg <ajay@activitycentral.com>2012-01-28 08:43:33 (GMT)
committer Ajay Garg <ajay@activitycentral.com>2012-10-16 18:11:51 (GMT)
commitc9cd48b893a7c412db613af7541d2c876e435289 (patch)
treeceeb3152116773e4353bcaa32f59293ecc2d0528
parentde4295245ff0f2cce92dd2812a7f2247061e04f0 (diff)
sl#2955: Ignore Buddy updates before receiving the initial Buddy list
Signed-off-by: Ajay Garg <ajay@activitycentral.com>
-rw-r--r--src/jarabe/model/neighborhood.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jarabe/model/neighborhood.py b/src/jarabe/model/neighborhood.py
index bf9cbf3..0712073 100644
--- a/src/jarabe/model/neighborhood.py
+++ b/src/jarabe/model/neighborhood.py
@@ -427,7 +427,8 @@ class _Account(GObject.GObject):
def __buddy_info_updated_cb(self, handle, properties):
logging.debug('_Account.__buddy_info_updated_cb %r', handle)
- self.emit('buddy-updated', self._buddy_handles[handle], properties)
+ if handle in self._buddy_handles:
+ self.emit('buddy-updated', self._buddy_handles[handle], properties)
def __current_activity_changed_cb(self, contact_handle, activity_id,
room_handle):