diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-08-23 16:25:47 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-08-23 16:28:41 +0800 |
commit | db05ed13ac1bb1e4b58d7b3c14e382679ea5f92d (patch) | |
tree | 5901eeb45f6f19f9a750ac056e4350ce1ba78086 | |
parent | aa3556ffa5eb1571b928918cf8995705db4754a1 (diff) | |
download | gsoc2013-empathy-db05ed13ac1bb1e4b58d7b3c14e382679ea5f92d.tar gsoc2013-empathy-db05ed13ac1bb1e4b58d7b3c14e382679ea5f92d.tar.gz gsoc2013-empathy-db05ed13ac1bb1e4b58d7b3c14e382679ea5f92d.tar.bz2 gsoc2013-empathy-db05ed13ac1bb1e4b58d7b3c14e382679ea5f92d.tar.lz gsoc2013-empathy-db05ed13ac1bb1e4b58d7b3c14e382679ea5f92d.tar.xz gsoc2013-empathy-db05ed13ac1bb1e4b58d7b3c14e382679ea5f92d.tar.zst gsoc2013-empathy-db05ed13ac1bb1e4b58d7b3c14e382679ea5f92d.zip |
Consider contact without presence as online (#627587)
That what we use to do but f8c37da731af9f6cd74e7a0ef08fa02059d981ac breaked
it. If we don't consider such contacts as online, IRC contacts don't appear in
the room contact list.
-rw-r--r-- | libempathy/empathy-contact.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c index 324f41f64..6c703acde 100644 --- a/libempathy/empathy-contact.c +++ b/libempathy/empathy-contact.c @@ -1048,8 +1048,10 @@ empathy_contact_is_online (EmpathyContact *contact) case TP_CONNECTION_PRESENCE_TYPE_OFFLINE: case TP_CONNECTION_PRESENCE_TYPE_UNKNOWN: case TP_CONNECTION_PRESENCE_TYPE_ERROR: - case TP_CONNECTION_PRESENCE_TYPE_UNSET: return FALSE; + /* Contacts without presence are considered online so we can display IRC + * contacts in rooms. */ + case TP_CONNECTION_PRESENCE_TYPE_UNSET: case TP_CONNECTION_PRESENCE_TYPE_AVAILABLE: case TP_CONNECTION_PRESENCE_TYPE_AWAY: case TP_CONNECTION_PRESENCE_TYPE_EXTENDED_AWAY: |