mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 08:15:02 +00:00
e2fb2962f6
PollRepository created a dedicated timeline for each operation performed in a thread, and never closed it, leaking SDK resources. Replace getTimelineProvider() with a scoped withTimeline() helper, so that the created timeline is closed once the operation completes, whether it succeeds, fails or gets cancelled. The live timeline is left untouched, since it is owned by its room. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>