[gnome-shell] telepathyClient: don't update notifications for outgoing messages
- From: Jonny Lamb <jonnylamb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] telepathyClient: don't update notifications for outgoing messages
- Date: Wed, 18 May 2011 07:27:03 +0000 (UTC)
commit ffd461cdb435eb479010bc0831371684f9983f74
Author: Jonny Lamb <jonnylamb gnome org>
Date: Sun May 15 10:07:23 2011 +0100
telepathyClient: don't update notifications for outgoing messages
If you receive a message, a notification will appear. If you reply in
Empathy's chat window before the notification disappears, the
notification is updated with the contents of the message you *just*
sent! We should only update notifications if they're incoming.
https://bugzilla.gnome.org/show_bug.cgi?id=650219
Signed-off-by: Jonny Lamb <jonnylamb gnome org>
js/ui/telepathyClient.js | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/telepathyClient.js b/js/ui/telepathyClient.js
index 252b266..18f4f88 100644
--- a/js/ui/telepathyClient.js
+++ b/js/ui/telepathyClient.js
@@ -411,7 +411,11 @@ Notification.prototype = {
styles.push('chat-action');
}
- this.update(this.source.title, messageBody, { customContent: true, bannerMarkup: true });
+ if (message.direction == NotificationDirection.RECEIVED) {
+ this.update(this.source.title, messageBody, { customContent: true,
+ bannerMarkup: true });
+ }
+
this._append(messageBody, styles, message.timestamp, noTimestamp);
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]