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
This commit is contained in:
Giovanni Campagna 2012-09-05 23:07:06 +02:00
parent 77c15b76b5
commit 488820daec

View File

@ -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() {