The variable is called roomId here

pull/21833/head
David Baker 2016-11-03 17:12:29 +00:00
parent d61714ab8d
commit 842b5aed56
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ class ContentMessages {
var error; var error;
var self = this; var self = this;
return def.promise.then(function() { 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. // If the room is encrypted then encrypt the file before uploading it.
// First read the file into memory. // First read the file into memory.
upload.promise = readFileAsArrayBuffer(file).then(function(data) { upload.promise = readFileAsArrayBuffer(file).then(function(data) {