Fix units of maximum attachment size

This commit is contained in:
Fedor Indutny
2023-01-05 13:47:11 -08:00
committed by GitHub
parent 198d6f7e26
commit 487bb58880
3 changed files with 16 additions and 13 deletions

View File

@@ -50,7 +50,7 @@ import {
resetLinkPreview,
suspendLinkPreviews,
} from '../../services/LinkPreview';
import { getMaximumAttachmentSize } from '../../util/attachments';
import { getMaximumAttachmentSizeInKb } from '../../util/attachments';
import { getRecipientsByConversation } from '../../util/getRecipientsByConversation';
import {
getRenderDetailsForLimit,
@@ -900,7 +900,7 @@ function preProcessAttachment(
return;
}
const limitKb = getMaximumAttachmentSize();
const limitKb = getMaximumAttachmentSizeInKb();
if (file.size > limitKb) {
return {
toastType: ToastType.FileSize,