If MC is not running, mission_control_get_presence_actual will return
OFFLINE and set an error. Empathy should do the same and use OFFLINE
instead of UNSET to avoid to not display the status icon in such cases
(there is no UNSET presence icon).
if (error) {
DEBUG ("Error getting actual presence: %s", error->message);
- priv->state = TP_CONNECTION_PRESENCE_TYPE_UNSET;
+ /* Fallback to OFFLINE as that's what mission_control_get_presence_actual
+ does. This also ensure to always display the status icon (there is no
+ unset presence icon). */
+ priv->state = TP_CONNECTION_PRESENCE_TYPE_OFFLINE;
g_clear_error (&error);
}
priv->status = mission_control_get_presence_message_actual (priv->mc, &error);