diff options
author | Erick Pérez Castellanos <erick.red@gmail.com> | 2012-03-02 11:13:54 -0500 |
---|---|---|
committer | Erick Pérez Castellanos <erick.red@gmail.com> | 2012-03-02 11:26:46 -0500 |
commit | 3eae3e0501539c1d3de7c062abaaa591f79ba1d9 (patch) | |
tree | 60ec22eb454a751f4e1308c1a8b5f8ed093d686b /src | |
parent | 424c77f0b6fde97e2422b64b2d7326407913670d (diff) | |
download | gnome-contacts-3eae3e0501539c1d3de7c062abaaa591f79ba1d9.tar.gz |
Fixing bug: Contacts displayed as online while he's not
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=671037
Diffstat (limited to 'src')
-rw-r--r-- | src/contacts-contact-pane.vala | 9 | ||||
-rw-r--r-- | src/contacts-contact.vala | 7 |
2 files changed, 10 insertions, 6 deletions
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala index 7fdc29d..dac26b3 100644 --- a/src/contacts-contact-pane.vala +++ b/src/contacts-contact-pane.vala @@ -1703,7 +1703,8 @@ public class Contacts.ContactPane : ScrolledWindow { var type = im_persona.presence_type; if (type != PresenceType.UNSET && type != PresenceType.ERROR && - type != PresenceType.OFFLINE) { + type != PresenceType.OFFLINE && + type != PresenceType.UNKNOWN) { found_im = true; if (type > max_presence) max_presence = type; @@ -1992,7 +1993,8 @@ public class Contacts.ContactPane : ScrolledWindow { var type = im_persona.presence_type; if (type != PresenceType.UNSET && type != PresenceType.ERROR && - type != PresenceType.OFFLINE) { + type != PresenceType.OFFLINE && + type != PresenceType.UNKNOWN) { CallValue? value = { null, protocol, id.value, Contact.format_im_name (im_persona, protocol, id.value) }; call_targets.add (value); } @@ -2068,7 +2070,8 @@ public class Contacts.ContactPane : ScrolledWindow { var type = im_persona.presence_type; if (type != PresenceType.UNSET && type != PresenceType.ERROR && - type != PresenceType.OFFLINE) { + type != PresenceType.OFFLINE && + type != PresenceType.UNKNOWN) { ImValue? value = { protocol, id.value, Contact.format_im_name (im_persona, protocol, id.value) }; online_personas.add (value); } diff --git a/src/contacts-contact.vala b/src/contacts-contact.vala index 0a2ea80..14311f9 100644 --- a/src/contacts-contact.vala +++ b/src/contacts-contact.vala @@ -44,7 +44,8 @@ public class Contacts.ContactPresence : Grid { if (type == PresenceType.UNSET || type == PresenceType.ERROR || - type == PresenceType.OFFLINE) { + type == PresenceType.OFFLINE || + type == PresenceType.UNKNOWN) { image.clear (); image.hide (); label.hide (); @@ -490,9 +491,9 @@ public class Contacts.Contact : GLib.Object { case PresenceType.OFFLINE: case PresenceType.UNSET: case PresenceType.ERROR: + case PresenceType.UNKNOWN: break; case PresenceType.AVAILABLE: - case PresenceType.UNKNOWN: iconname = "user-available-symbolic"; break; case PresenceType.AWAY: @@ -523,9 +524,9 @@ public class Contacts.Contact : GLib.Object { case PresenceType.OFFLINE: case PresenceType.UNSET: case PresenceType.ERROR: + case PresenceType.UNKNOWN: break; case PresenceType.AVAILABLE: - case PresenceType.UNKNOWN: iconname = "user-available"; break; case PresenceType.AWAY: |