From bef9e289a01555b4a557988eac0b52ce4d1b1b22 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Wed, 27 May 2009 22:30:36 +0100 Subject: Treat TP_CONNECTION_PRESENCE_TYPE_UNSET as _AVAILABLE In case a CM doesn't have the presence interface a contacts presence will be reported as _UNSET. Treating this as _AVAILABLE causes these contacts to show up in the UI --- libempathy/empathy-contact.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libempathy') diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c index 3d6432d56..9e8e2715b 100644 --- a/libempathy/empathy-contact.c +++ b/libempathy/empathy-contact.c @@ -599,12 +599,12 @@ presence_type_to_mc_presence (TpConnectionPresenceType type) { switch (type) { - case TP_CONNECTION_PRESENCE_TYPE_UNSET: case TP_CONNECTION_PRESENCE_TYPE_UNKNOWN: case TP_CONNECTION_PRESENCE_TYPE_ERROR: return MC_PRESENCE_UNSET; case TP_CONNECTION_PRESENCE_TYPE_OFFLINE: return MC_PRESENCE_OFFLINE; + case TP_CONNECTION_PRESENCE_TYPE_UNSET: case TP_CONNECTION_PRESENCE_TYPE_AVAILABLE: return MC_PRESENCE_AVAILABLE; case TP_CONNECTION_PRESENCE_TYPE_AWAY: -- cgit v1.2.3