3.0.0 #220

Merged
flfeders merged 676 commits from dev into main 2026-09-20 16:10:48 +00:00
Showing only changes of commit 38ccdd058b - Show all commits

View File

@@ -70,6 +70,7 @@ let matrixLiveKitRoom = null
let matrixLiveSyncRunId = 0
const matrixCallVideoElements = new Map()
const matrixAttachmentPreviewRequests = new Set()
const matrixAttachmentPreviewFailures = new Set()
const matrixSyncSince = ref("")
const canUseMatrixChat = computed(() =>
@@ -1388,7 +1389,12 @@ const attachmentObjectUrl = (attachment) =>
attachment?.url ? matrixAttachmentObjectUrls.value[attachment.url] || "" : ""
const ensureAttachmentObjectUrl = async (attachment) => {
if (!attachment?.url || matrixAttachmentObjectUrls.value[attachment.url] || matrixAttachmentPreviewRequests.has(attachment.url)) return
if (
!attachment?.url ||
matrixAttachmentObjectUrls.value[attachment.url] ||
matrixAttachmentPreviewRequests.has(attachment.url) ||
matrixAttachmentPreviewFailures.has(attachment.url)
) return
matrixAttachmentPreviewRequests.add(attachment.url)
try {
@@ -1401,6 +1407,7 @@ const ensureAttachmentObjectUrl = async (attachment) => {
[attachment.url]: objectUrl
}
} catch (error) {
matrixAttachmentPreviewFailures.add(attachment.url)
// Fällt nur auf den Link zurück; der Chat selbst soll weiter funktionieren.
} finally {
matrixAttachmentPreviewRequests.delete(attachment.url)