Addition of an AI chat assistant and a 100MB file upload limit.
This commit is contained in:
@@ -136,7 +136,7 @@ function shouldCountUnread(roomId: string, content: string, fromSelf: boolean):
|
||||
}
|
||||
const IMAGE_MAX_EDGE = 1600;
|
||||
const IMAGE_WEBP_QUALITY = 0.82;
|
||||
const MAX_UPLOAD_BYTES = 40 * 1024 * 1024;
|
||||
const MAX_UPLOAD_BYTES = 100 * 1024 * 1024;
|
||||
/** Synced hard-delete marker (legacy edit attempts). */
|
||||
const HARD_DELETE_MARKER = '__MENTO_DEL__';
|
||||
/** Realtime hide command delivered as a normal text message (external WS delivers text reliably). */
|
||||
@@ -1497,7 +1497,7 @@ export function useOrgChat() {
|
||||
) {
|
||||
if (!file) return;
|
||||
if (file.size > MAX_UPLOAD_BYTES) {
|
||||
throw new Error('حجم فایل بیش از حد مجاز است (۴۰ مگابایت)');
|
||||
throw new Error('حجم فایل بیش از حد مجاز است (۱۰۰ مگابایت)');
|
||||
}
|
||||
|
||||
const session = await ensureSession();
|
||||
|
||||
Reference in New Issue
Block a user