Fixing bug: Contacts displayed as online while he's not

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=671037
parent 424c77f0
......@@ -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);
}
......
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment