telepathyClient: handle ExtendedAway as Away and not Offline

https://bugzilla.gnome.org/show_bug.cgi?id=667813
This commit is contained in:
Guillaume Desmottes 2012-01-13 11:17:39 +01:00
parent 7c108e267c
commit 6cdb1bd60c

View File

@ -669,12 +669,12 @@ const ChatSource = new Lang.Class({
if (presence == Tp.ConnectionPresenceType.AVAILABLE) { if (presence == Tp.ConnectionPresenceType.AVAILABLE) {
msg = _("%s is online.").format(title); msg = _("%s is online.").format(title);
shouldNotify = (this._presence == Tp.ConnectionPresenceType.OFFLINE); shouldNotify = (this._presence == Tp.ConnectionPresenceType.OFFLINE);
} else if (presence == Tp.ConnectionPresenceType.OFFLINE || } else if (presence == Tp.ConnectionPresenceType.OFFLINE) {
presence == Tp.ConnectionPresenceType.EXTENDED_AWAY) {
presence = Tp.ConnectionPresenceType.OFFLINE; presence = Tp.ConnectionPresenceType.OFFLINE;
msg = _("%s is offline.").format(title); msg = _("%s is offline.").format(title);
shouldNotify = (this._presence != Tp.ConnectionPresenceType.OFFLINE); 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); msg = _("%s is away.").format(title);
shouldNotify = false; shouldNotify = false;
} else if (presence == Tp.ConnectionPresenceType.BUSY) { } else if (presence == Tp.ConnectionPresenceType.BUSY) {