From 2244b6ff1b2233485a55c1a9de611da071df29c8 Mon Sep 17 00:00:00 2001 From: Jonny Lamb Date: Thu, 5 May 2011 13:19:59 +0100 Subject: [PATCH] telepathyClient: don't notify for delivery reports Signed-off-by: Jonny Lamb --- js/ui/telepathyClient.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/ui/telepathyClient.js b/js/ui/telepathyClient.js index 5e3f33c97..cee808242 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();