aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-contact.c
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-05-28 05:30:36 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-05-28 05:49:56 +0800
commitbef9e289a01555b4a557988eac0b52ce4d1b1b22 (patch)
treed7a95ad63ee35c92169426d065859135347fbc64 /libempathy/empathy-contact.c
parentf3f045256549a1e2fc6a0f214eb57bc7aecbf6b9 (diff)
downloadgsoc2013-empathy-bef9e289a01555b4a557988eac0b52ce4d1b1b22.tar
gsoc2013-empathy-bef9e289a01555b4a557988eac0b52ce4d1b1b22.tar.gz
gsoc2013-empathy-bef9e289a01555b4a557988eac0b52ce4d1b1b22.tar.bz2
gsoc2013-empathy-bef9e289a01555b4a557988eac0b52ce4d1b1b22.tar.lz
gsoc2013-empathy-bef9e289a01555b4a557988eac0b52ce4d1b1b22.tar.xz
gsoc2013-empathy-bef9e289a01555b4a557988eac0b52ce4d1b1b22.tar.zst
gsoc2013-empathy-bef9e289a01555b4a557988eac0b52ce4d1b1b22.zip
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
Diffstat (limited to 'libempathy/empathy-contact.c')
-rw-r--r--libempathy/empathy-contact.c2
1 files changed, 1 insertions, 1 deletions
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: