diff options
author | Simon Schampijer <simon@schampijer.de> | 2011-06-26 13:17:17 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@schampijer.de> | 2011-07-06 07:21:03 (GMT) |
commit | e9a6c1d6789224d5041503176ee4455472a49391 (patch) | |
tree | f928d1d876bde593825259938bfab5a785b0ccd4 | |
parent | ef96e7033a81922e6d5c7e6b57952a09469a585e (diff) |
Gabble: do not add ourself to the model twice OLPC #10965
We do add ourself to the model by default. When we are connected
to the server it often gives us as well ourself back.
This is due to a bug in the @online@ implementation
in ejabberd. The first version to have this fixed
is v2.1.7, more background info at
https://support.process-one.net/browse/EJAB-1391.
Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-By: Sascha Silbe <silbe@activitycentral.com>
-rw-r--r-- | src/jarabe/model/neighborhood.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/jarabe/model/neighborhood.py b/src/jarabe/model/neighborhood.py index 4bb9d92..5a4c5a5 100644 --- a/src/jarabe/model/neighborhood.py +++ b/src/jarabe/model/neighborhood.py @@ -552,6 +552,11 @@ class _Account(gobject.GObject): for handle in attributes.keys(): nick = attributes[handle][CONNECTION_INTERFACE_ALIASING + '/alias'] + if handle == self._self_handle: + logging.debug('_Account.__get_contact_attributes_cb,' \ + ' do not add ourself %r', handle) + continue + if handle in self._buddy_handles and \ not self._buddy_handles[handle] is None: logging.debug('Got handle %r with nick %r, going to update', |