[TelepathyClient] Fix notification of presence change
When renaming Source.name to Source.title in commit 83689e4
some
references were missed, which broke presence change notifications.
https://bugzilla.gnome.org/show_bug.cgi?id=623494
This commit is contained in:
parent
fdbda8e731
commit
7b79e2e35c
@ -542,18 +542,18 @@ Source.prototype = {
|
||||
let msg, notify;
|
||||
|
||||
if (presence == Telepathy.ConnectionPresenceType.AVAILABLE) {
|
||||
msg = _("%s is online.").format(this.name);
|
||||
msg = _("%s is online.").format(this.title);
|
||||
notify = (this._presence == Telepathy.ConnectionPresenceType.OFFLINE);
|
||||
} else if (presence == Telepathy.ConnectionPresenceType.OFFLINE ||
|
||||
presence == Telepathy.ConnectionPresenceType.EXTENDED_AWAY) {
|
||||
presence = Telepathy.ConnectionPresenceType.OFFLINE;
|
||||
msg = _("%s is offline.").format(this.name);
|
||||
msg = _("%s is offline.").format(this.title);
|
||||
notify = (this._presence != Telepathy.ConnectionPresenceType.OFFLINE);
|
||||
} else if (presence == Telepathy.ConnectionPresenceType.AWAY) {
|
||||
msg = _("%s is away.").format(this.name);
|
||||
msg = _("%s is away.").format(this.title);
|
||||
notify = false;
|
||||
} else if (presence == Telepathy.ConnectionPresenceType.BUSY) {
|
||||
msg = _("%s is busy.").format(this.name);
|
||||
msg = _("%s is busy.").format(this.title);
|
||||
notify = false;
|
||||
} else
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user