[gnome-shell] user-menu: Don't change HIDDEN to EXTENDED_AWAY
- From: Florian MÃllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] user-menu: Don't change HIDDEN to EXTENDED_AWAY
- Date: Tue, 31 Jan 2012 09:27:36 +0000 (UTC)
commit b3936ecadf868f14d216643f7b24af3b00fafb9e
Author: Florian MÃllner <fmuellner gnome org>
Date: Wed Oct 19 15:15:14 2011 +0200
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
js/ui/userMenu.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/userMenu.js b/js/ui/userMenu.js
index 6e3cf5d..7862477 100644
--- a/js/ui/userMenu.js
+++ b/js/ui/userMenu.js
@@ -376,7 +376,8 @@ const IMStatusChooserItem = new Lang.Class({
if (sessionStatus == GnomeSession.PresenceStatus.IDLE) {
// Only change presence if the current one is "more present" than
// idle
- if (this._currentPresence != Tp.ConnectionPresenceType.OFFLINE)
+ if (this._currentPresence != Tp.ConnectionPresenceType.OFFLINE &&
+ this._currentPresence != Tp.ConnectionPresenceType.HIDDEN)
return Tp.ConnectionPresenceType.EXTENDED_AWAY;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]