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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user