fix(app): do not crash when the browser translates the page (#2624)

This commit is contained in:
Hampus authored and GitHub committed 2026-09-09 01:24:14 +02:00
1 parent 044a2c101d
commit d729f641ff
83 files changed
+3774 -1080

No files matched your search

@@ -64,10 +64,11 @@ export function TextualAttachmentCodePanel({
data-flx="channel.embeds.attachments.textual-attachment-code-panel.warning-circle-icon"
/>
<span data-flx="channel.embeds.attachments.textual-attachment-code-panel.span">
{previewError?.type === 'size'
? i18n._(FILE_IS_TOO_LARGE_FOR_INLINE_PREVIEW_LIMIT_DESCRIPTOR, {previewLimitKb: PREVIEW_LIMIT_KB})
: i18n._(UNABLE_TO_LOAD_PREVIEW_DESCRIPTOR)}
{previewError?.type === 'network' && previewError.message ? ` ${previewError.message}` : ''}
{`${
previewError?.type === 'size'
? i18n._(FILE_IS_TOO_LARGE_FOR_INLINE_PREVIEW_LIMIT_DESCRIPTOR, {previewLimitKb: PREVIEW_LIMIT_KB})
: i18n._(UNABLE_TO_LOAD_PREVIEW_DESCRIPTOR)
}${previewError?.type === 'network' && previewError.message ? ` ${previewError.message}` : ''}`}
</span>
</div>
</div>