fix(chat): make cached media load on safari

This commit is contained in:
2026-07-01 20:13:56 +08:00
parent 8586e87ab6
commit c20769b6a3
11 changed files with 299 additions and 72 deletions
+4 -1
View File
@@ -39,7 +39,10 @@ export interface LocalChatMediaRow {
messageId: string;
kind: ChatMediaKind;
remoteUrl: string;
blob: Blob;
/** v3+ stores raw bytes instead of Blob to avoid iOS WebKit Blob URL issues. */
bytes?: ArrayBuffer;
/** Legacy v2 field. Read-only fallback for users who already have cached media. */
blob?: Blob;
mimeType: string;
byteSize: number;
createdAt: number;