[gnome-shell] [TelepathyClient] Fix notification of presence change
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] [TelepathyClient] Fix notification of presence change
- Date: Sun, 4 Jul 2010 00:06:31 +0000 (UTC)
commit 7b79e2e35cf8e37ddaf65d991bc727762840a2e0
Author: Giovanni Campagna <scampa giovanni gmail com>
Date: Sun Jul 4 00:28:32 2010 +0200
[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
js/ui/telepathyClient.js | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/telepathyClient.js b/js/ui/telepathyClient.js
index 5f72f8a..5bf0065 100644
--- a/js/ui/telepathyClient.js
+++ b/js/ui/telepathyClient.js
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]