telepathyClient: handle ExtendedAway as Away and not Offline
https://bugzilla.gnome.org/show_bug.cgi?id=667813
This commit is contained in:
parent
7c108e267c
commit
6cdb1bd60c
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user