[Telepathy-commits] [telepathy-gabble/master] no need to ensure the buddy handle when receiving a change stanza
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Fri Sep 26 10:02:48 PDT 2008
20080728153914-7fe3f-b8add3b12c133569107bcefa47f00813af68c13d.gz
---
src/conn-olpc.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/src/conn-olpc.c b/src/conn-olpc.c
index 45900ca..60bcd2e 100644
--- a/src/conn-olpc.c
+++ b/src/conn-olpc.c
@@ -2946,10 +2946,7 @@ buddy_changed (GabbleConnection *conn,
return;
}
- /* FIXME: Should we really have to ensure the handle? If we receive changes
- * notifications that means this contact is in your search frame so maybe
- * we should keep a ref on his handle */
- handle = tp_handle_ensure (contact_repo, jid, NULL, NULL);
+ handle = tp_handle_lookup (contact_repo, jid, NULL, NULL);
if (handle == 0)
{
DEBUG ("Invalid jid: %s. Discard", jid);
--
1.5.6.5
More information about the Telepathy-commits
mailing list