[gnome-shell] TelepathyClient: don't emit an error if an unknown message is acknowledged



commit 488820daec895d21f62571794ac397c0f58e28f6
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Wed Sep 5 23:07:06 2012 +0200

    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 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/components/telepathyClient.js b/js/ui/components/telepathyClient.js
index 15cc738..3e9087c 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() {



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