user-menu: Don't change HIDDEN to EXTENDED_AWAY
When the session status changes to IDLE, we automatically adjust the IM presence; however, we should treat HIDDEN the same as OFFLINE and not change the presence. https://bugzilla.gnome.org/show_bug.cgi?id=642408
This commit is contained in:
parent
2c9e6bb589
commit
b3936ecadf
@ -376,7 +376,8 @@ const IMStatusChooserItem = new Lang.Class({
|
|||||||
if (sessionStatus == GnomeSession.PresenceStatus.IDLE) {
|
if (sessionStatus == GnomeSession.PresenceStatus.IDLE) {
|
||||||
// Only change presence if the current one is "more present" than
|
// Only change presence if the current one is "more present" than
|
||||||
// idle
|
// idle
|
||||||
if (this._currentPresence != Tp.ConnectionPresenceType.OFFLINE)
|
if (this._currentPresence != Tp.ConnectionPresenceType.OFFLINE &&
|
||||||
|
this._currentPresence != Tp.ConnectionPresenceType.HIDDEN)
|
||||||
return Tp.ConnectionPresenceType.EXTENDED_AWAY;
|
return Tp.ConnectionPresenceType.EXTENDED_AWAY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user