Commit Graph
18 Commits
Author SHA1 Message Date
7w1 3000ea16af clippy 2026-07-22 11:38:34 -05:00
7w1 f947dd5c78 formatting 2026-07-22 11:33:42 -05:00
7w1 d2a3f91701 fix: add temp cache for larger files and deduplicate inflight large files 2026-07-22 11:29:47 -05:00
Erwan Leboucher e6b16c883c fix(media): reduce loading contention 2026-07-22 15:02:49 +02:00
Erwan Leboucher b23625075c fix(tauri): deduplicate concurrent media fetches 2026-07-22 08:17:55 +02:00
7w1 502980ce70 perf: file upload performance 2026-07-21 12:18:22 -05:00
7w1 3f221da359 feat(tauri): cacheable media responses and Range streaming for video/audio (#1157)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

<!-- Please include a summary of the change. Please also include
relevant motivation and context. List any dependencies that are required
for this change. -->

Fixes #

#### Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
2026-07-20 20:27:19 +00:00
Erwan Leboucher 7e266bc7ce fix(tauri): purge orphaned upload temp files on startup 2026-07-20 21:29:58 +02:00
Erwan Leboucher 213c629c6a fix(mobile): keep composer keyboard sane and use bottom-sheet emoji pickers 2026-07-20 21:29:58 +02:00
Erwan Leboucher 45be0dae13 fix(tauri): stream android media uploads to fix OOM and show progress 2026-07-20 21:29:57 +02:00
Erwan Leboucher 05343c6728 fix(tauri): serve oversized media without persisting past the cache budget
A media file larger than MAX_CACHE_BYTES was written to disk and then
immediately evicted by evict_if_needed (it alone exceeded the budget, so
everything — including itself — got dropped), so it was never servable
from disk on a hit.

ensure_cached now skips the write for bodies larger than the budget and
returns them in-memory for that request; handle_request serves a Range
request off the in-memory buffer via the new serve_range_memory. Cache
hits and all files within the budget are unchanged.
2026-07-20 21:10:52 +02:00
Erwan Leboucher 3a607a3217 feat(tauri): cacheable media responses and Range streaming for video/audio 2026-07-20 13:24:33 +02:00
Erwan Leboucher 904d27102d fix(tauri): prevent android media loading stalls and object-url leaks 2026-07-19 19:51:26 +02:00
7w1 61bcf64f50 fix(tauri): isolate authenticated media caches 2026-07-18 23:12:55 -05:00
Erwan Leboucher d13c195d47 fix(tauri): apply desktop review fixes and drop redundant unifiedpush plugin 2026-07-19 01:06:27 +02:00
Erwan Leboucher 7abb7b455d perf(tauri): reuse a shared reqwest client in the media protocol 2026-07-17 19:45:00 +02:00
Erwan Leboucher cce57580e5 feat: handle image via uri scheme protocol
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
2026-07-17 16:26:39 +02:00
hazre d54e671880 refactor: add tauri-aware fetch wrapper 2026-04-11 20:08:55 +02:00