From 76f0f15e491ad72249e9c8911890bbb02e94d849 Mon Sep 17 00:00:00 2001 From: Will Hunt Date: Thu, 21 Jun 2018 09:36:41 +0100 Subject: [PATCH] Fix nitpicks --- src/components/views/rooms/MessageComposer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/views/rooms/MessageComposer.js b/src/components/views/rooms/MessageComposer.js index 7d4b4f690f..bb8f7d78d2 100644 --- a/src/components/views/rooms/MessageComposer.js +++ b/src/components/views/rooms/MessageComposer.js @@ -16,7 +16,7 @@ limitations under the License. */ import React from 'react'; import PropTypes from 'prop-types'; -import filesize from "filesize"; +import filesize from 'filesize'; import { _t } from '../../../languageHandler'; import CallHandler from '../../../CallHandler'; import MatrixClientPeg from '../../../MatrixClientPeg'; @@ -110,13 +110,13 @@ export default class MessageComposer extends React.Component { } isFileUploadAllowed(file) { - if (this._uploadLimits.upload_size != null && file.size > this._uploadLimits.upload_size) { + if (this._uploadLimits.upload_size !== undefined && file.size > this._uploadLimits.upload_size) { return _t("File is too big. Maximum file size is %(fileSize)s", {fileSize: filesize(this._uploadLimits.upload_size)}); } return true; } - uploadFiles(files, limits) { + uploadFiles(files) { const QuestionDialog = sdk.getComponent("dialogs.QuestionDialog"); const TintableSvg = sdk.getComponent("elements.TintableSvg");