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:
parent
84fd605ad3
commit
9fb079253c
3 changed files with 17 additions and 8 deletions
|
@ -380,6 +380,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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue