From 842b5aed56e43529e7e689ba4b3940c95e954adb Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 3 Nov 2016 17:12:29 +0000 Subject: [PATCH] The variable is called roomId here --- src/ContentMessages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ContentMessages.js b/src/ContentMessages.js index a3f6d548c3..d88d769c91 100644 --- a/src/ContentMessages.js +++ b/src/ContentMessages.js @@ -161,7 +161,7 @@ class ContentMessages { var error; var self = this; return def.promise.then(function() { - if (matrixClient.isRoomEncrypted(room_id)) { + if (matrixClient.isRoomEncrypted(roomId)) { // If the room is encrypted then encrypt the file before uploading it. // First read the file into memory. upload.promise = readFileAsArrayBuffer(file).then(function(data) {