mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-28 12:56:25 -08:00
Make useRenderableMediaUrl idempotent under Tauri: it now rewrites raw authenticated-media https URLs to sable-media:// even when the caller bypassed the mxcUrlToHttp wrapper. This fixes 401 errors for avatars from ~10 call sites (sidebar spaces, member tiles, reaction viewer, etc.) that use the raw SDK method directly. - Extract rewriteAuthenticatedMediaUrl helper in matrix.ts - Apply it in useRenderableMediaUrl Tauri fast-path - Use it from mxcUrlToHttp wrapper (single source) - Add tests for both the helper and hook Tauri paths