Remove errors from the cache when they are shown to the user (#1392)

There's really no reason to retry encryption errors again if they've
already been made user-visible in a conversation.

Also, refactor e->error in background.js onError(), since both e and ev
in this method made it too easy to make a mistake.
This commit is contained in:
Scott Nonnenberg 2017-08-25 14:24:16 -07:00 committed by GitHub
parent 84fd605ad3
commit 9fb079253c
3 changed files with 17 additions and 8 deletions

View file

@ -38631,6 +38631,7 @@ MessageReceiver.prototype.extend({
var ev = new Event('error');
ev.error = error;
ev.proto = envelope;
ev.confirm = this.removeFromCache.bind(this, envelope);
var returnError = function() {
return Promise.reject(error);