[gnome-shell] telepathyClient: don't notify for delivery reports



commit 2244b6ff1b2233485a55c1a9de611da071df29c8
Author: Jonny Lamb <jonnylamb gnome org>
Date:   Thu May 5 13:19:59 2011 +0100

    telepathyClient: don't notify for delivery reports
    
    Signed-off-by: Jonny Lamb <jonnylamb gnome org>

 js/ui/telepathyClient.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/telepathyClient.js b/js/ui/telepathyClient.js
index 5e3f33c..cee8082 100644
--- a/js/ui/telepathyClient.js
+++ b/js/ui/telepathyClient.js
@@ -289,6 +289,9 @@ Source.prototype = {
     },
 
     _messageReceived: function(channel, message) {
+        if (message.get_message_type() == Tp.ChannelTextMessageType.DELIVERY_REPORT)
+            return;
+
         message = makeMessageFromTpMessage(message, NotificationDirection.RECEIVED);
         this._notification.appendMessage(message);
         this.notify();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]