From db011e7065b4df25af098e697bb6f5698f89703a Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 24 Aug 2017 14:42:38 +0100 Subject: [PATCH] Get variable name right --- src/Notifier.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Notifier.js b/src/Notifier.js index d3b54a6cca..0a3b346cf4 100644 --- a/src/Notifier.js +++ b/src/Notifier.js @@ -256,7 +256,7 @@ const Notifier = { // If it's an encrypted event and the type is still 'm.room.encrypted', // it hasn't yet been decrypted, so wait until it is. - if (event.isBeingDecrypted() || event.isDecryptionFailure()) { + if (ev.isBeingDecrypted() || ev.isDecryptionFailure()) { this.pendingEncryptedEventIds.push(ev.getId()); // don't let the list fill up indefinitely while (this.pendingEncryptedEventIds.length > MAX_PENDING_ENCRYPTED) {