Merge remote-tracking branch 'origin/develop' into develop

pull/21833/head
Weblate 2018-03-29 17:33:49 +00:00
commit 1447c04dda
1 changed files with 4 additions and 0 deletions

View File

@ -256,6 +256,10 @@ const Notifier = {
},
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());
if (idx === -1) return;