mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 16:22:49 +00:00
ed250320b3
Both created a dedicated timeline for each operation performed in a thread, and never closed it, leaking SDK resources. Apply the same treatment as PollRepository: replace getTimeline() with a scoped withTimeline() helper, which closes the created timeline once the operation completes, whether it succeeds, fails or gets cancelled. In DefaultMediaSender.sendGallery(), waiting for the upload handler is now done inside the block, so that the timeline stays open until the upload completes. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>