mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-25 04:36:46 +00:00
Fix units of maximum attachment size
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user