[gnome-shell] telepathyClient: handle ExtendedAway as Away and not Offline
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] telepathyClient: handle ExtendedAway as Away and not Offline
- Date: Fri, 13 Jan 2012 15:28:21 +0000 (UTC)
commit 6cdb1bd60c715d04985c407e5df8146b1ae2897a
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Fri Jan 13 11:17:39 2012 +0100
telepathyClient: handle ExtendedAway as Away and not Offline
https://bugzilla.gnome.org/show_bug.cgi?id=667813
js/ui/telepathyClient.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/telepathyClient.js b/js/ui/telepathyClient.js
index d75649a..e99a5ed 100644
--- a/js/ui/telepathyClient.js
+++ b/js/ui/telepathyClient.js
@@ -669,12 +669,12 @@ const ChatSource = new Lang.Class({
if (presence == Tp.ConnectionPresenceType.AVAILABLE) {
msg = _("%s is online.").format(title);
shouldNotify = (this._presence == Tp.ConnectionPresenceType.OFFLINE);
- } else if (presence == Tp.ConnectionPresenceType.OFFLINE ||
- presence == Tp.ConnectionPresenceType.EXTENDED_AWAY) {
+ } else if (presence == Tp.ConnectionPresenceType.OFFLINE) {
presence = Tp.ConnectionPresenceType.OFFLINE;
msg = _("%s is offline.").format(title);
shouldNotify = (this._presence != Tp.ConnectionPresenceType.OFFLINE);
- } else if (presence == Tp.ConnectionPresenceType.AWAY) {
+ } else if (presence == Tp.ConnectionPresenceType.AWAY ||
+ presence == Tp.ConnectionPresenceType.EXTENDED_AWAY) {
msg = _("%s is away.").format(title);
shouldNotify = false;
} else if (presence == Tp.ConnectionPresenceType.BUSY) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]