telepathyClient: don't notify for delivery reports

Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
This commit is contained in:
Jonny Lamb 2011-05-05 13:19:59 +01:00
parent fb384fc291
commit 2244b6ff1b

View File

@ -289,6 +289,9 @@ Source.prototype = {
}, },
_messageReceived: function(channel, message) { _messageReceived: function(channel, message) {
if (message.get_message_type() == Tp.ChannelTextMessageType.DELIVERY_REPORT)
return;
message = makeMessageFromTpMessage(message, NotificationDirection.RECEIVED); message = makeMessageFromTpMessage(message, NotificationDirection.RECEIVED);
this._notification.appendMessage(message); this._notification.appendMessage(message);
this.notify(); this.notify();