mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-16 23:41:44 +03:00
Fix nitpicks
This commit is contained in:
parent
7c0811dd92
commit
76f0f15e49
1 changed files with 3 additions and 3 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue