From 488820daec895d21f62571794ac397c0f58e28f6 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Wed, 5 Sep 2012 23:07:06 +0200 Subject: [PATCH] TelepathyClient: don't emit an error if an unknown message is acknowledged pending-messages-removed is emitted for sent messages too, but we don't include those in the _pendingMessages list. Avoid useless spew in the session logs in that case. https://bugzilla.gnome.org/show_bug.cgi?id=683449 --- js/ui/components/telepathyClient.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/js/ui/components/telepathyClient.js b/js/ui/components/telepathyClient.js index 15cc73825..3e9087c81 100644 --- a/js/ui/components/telepathyClient.js +++ b/js/ui/components/telepathyClient.js @@ -746,8 +746,6 @@ const ChatSource = new Lang.Class({ this._pendingMessages.splice(idx, 1); this.countUpdated(); } - else - throw new Error('Message not in our pending list: ' + message); }, _ackMessages: function() {