Улучшить вложения и запись голосовых в личной переписке

This commit is contained in:
AidarKC
2026-11-17 15:34:36 +03:00
parent 1f06629838
commit 2dd0ed6d59
9 changed files with 251 additions and 40 deletions
-12
View File
@@ -232,18 +232,6 @@ function createUnavailableBlock(messageTimestampMs, storage = 'arweave', detail
? t('remaining.attachments.the_file_may_not_have_propagated_to_arweave_yet_please_try')
: t('remaining.attachments.file_unavailable');
}
if (detail) {
const debug = document.createElement('pre');
debug.className = 'message-attachment-debug';
debug.textContent = [
'DEBUG server attachment',
detail.name ? `name: ${detail.name}` : '',
detail.sha256 ? `sha256: ${detail.sha256}` : '',
detail.url ? `url: ${detail.url}` : '',
detail.error ? `error: ${detail.error}` : '',
].filter(Boolean).join('\n');
block.append(debug);
}
return block;
}