From db05ed13ac1bb1e4b58d7b3c14e382679ea5f92d Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 23 Aug 2010 10:25:47 +0200 Subject: 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. --- libempathy/empathy-contact.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libempathy/empathy-contact.c') 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: -- cgit v1.2.3