Перевести вложения DM на R2 и обновить файловый API

This commit is contained in:
AidarKC
2026-11-15 14:33:52 +03:00
parent 3ecec25fce
commit 70540ff041
23 changed files with 770 additions and 202 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ export function createDmFileAttachmentCard(attachment) {
const fileMeta = document.createElement('span');
fileMeta.className = 'dm-file-card__meta';
const metaParts = [formatBytes(attachment.size)];
if (Number(attachment?.version || 1) >= 2) metaParts.push('BitTorrent v2');
if (Number(attachment?.version || 1) === 2) metaParts.push('BitTorrent v2');
fileMeta.textContent = metaParts.join(' · ');
fileCopy.append(fileName, fileMeta);