diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-05-28 05:30:36 +0800 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-05-28 05:49:56 +0800 |
commit | bef9e289a01555b4a557988eac0b52ce4d1b1b22 (patch) | |
tree | d7a95ad63ee35c92169426d065859135347fbc64 /libempathy | |
parent | f3f045256549a1e2fc6a0f214eb57bc7aecbf6b9 (diff) | |
download | gsoc2013-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')
-rw-r--r-- | libempathy/empathy-contact.c | 2 |
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: |