Merge pull request #1818 from matrix-org/dbkr/dont_notify_bad_encrypted
Don't notify for bad encrypted messagespull/21833/head
commit
a79c558763
|
@ -256,6 +256,10 @@ const Notifier = {
|
||||||
},
|
},
|
||||||
|
|
||||||
onEventDecrypted: function(ev) {
|
onEventDecrypted: function(ev) {
|
||||||
|
// 'decrypted' means the decryption process has finished: it may have failed,
|
||||||
|
// in which case it might decrypt soon if the keys arrive
|
||||||
|
if (ev.isDecryptionFailure()) return;
|
||||||
|
|
||||||
const idx = this.pendingEncryptedEventIds.indexOf(ev.getId());
|
const idx = this.pendingEncryptedEventIds.indexOf(ev.getId());
|
||||||
if (idx === -1) return;
|
if (idx === -1) return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue