From 407907322be085012697704d936dea905fb4b4e8 Mon Sep 17 00:00:00 2001 From: Date: Wed, 24 May 2006 13:43:11 +0000 Subject: create presence for people who only have nicknames 20060524134311-b59df-73c68840af46de846962fae3355eae16dc3435ea.gz --- src/gabble-presence-cache.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/gabble-presence-cache.c') diff --git a/src/gabble-presence-cache.c b/src/gabble-presence-cache.c index cc9433b37..c0ed0e31c 100644 --- a/src/gabble-presence-cache.c +++ b/src/gabble-presence-cache.c @@ -53,6 +53,8 @@ static void gabble_presence_cache_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec); static void gabble_presence_cache_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec); +static GabblePresence *_cache_insert (GabblePresenceCache *cache, + GabbleHandle handle); static void gabble_presence_cache_status_changed_cb (GabbleConnection *, TpConnectionStatus, TpConnectionStatusReason, gpointer); @@ -358,7 +360,10 @@ _grab_nickname (GabblePresenceCache *cache, presence = gabble_presence_cache_get (cache, handle); if (NULL == presence) - return; + { + presence = _cache_insert (cache, handle); + presence->keep_unavailable = TRUE; + } nickname = lm_message_node_get_value (node); g_debug ("got nickname \"%s\" for %s", nickname, from); -- cgit v1.2.3