remove file extension as it triggers markdown rendering and requesting the url -> 404

This commit is contained in:
Ulf Gebhardt 2026-04-04 01:42:19 +02:00
parent ec9c8a689c
commit 142d17bfa7
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -314,9 +314,7 @@ export default {
if (text) return text.substring(0, 30)
if (!files?.length) return ''
if (files[0].type?.startsWith('audio/') || files[0].audio) return ''
const f = files[0]
const name = f.extension ? `${f.name}.${f.extension}` : f.name || ''
return `\uD83D\uDCCE ${name}`
return `\uD83D\uDCCE ${files[0].name || ''}`
},
markAsSeen(messageIds) {