Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2007-05-30 16:41:08 (GMT)
committer Simon McVittie <simon.mcvittie@collabora.co.uk>2007-05-30 16:41:08 (GMT)
commita54aaa54beacf1579c5fe14c7ebf8c45de3a8c6a (patch)
treec3e0460745ca017559f7ec38bc3062708011ca62 /services
parentf90de752f66e7f3484e2b93d7530f00c0a9517fd (diff)
services/presence/presenceservice: look up buddies by key-ID if we don't know the full key yet.
Diffstat (limited to 'services')
-rw-r--r--services/presence/presenceservice.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/services/presence/presenceservice.py b/services/presence/presenceservice.py
index 6c17082..5bcfd45 100644
--- a/services/presence/presenceservice.py
+++ b/services/presence/presenceservice.py
@@ -353,6 +353,11 @@ class PresenceService(ExportedGObject):
if buddy is not None:
if buddy.props.valid:
return buddy.object_path()
+ keyid = pubkey_to_keyid(key)
+ buddy = self._buddies.get('keyid/' + keyid)
+ if buddy is not None:
+ if buddy.props.valid:
+ return buddy.object_path()
raise NotFoundError("The buddy was not found.")
@dbus.service.method(_PRESENCE_INTERFACE, in_signature='sou',