element-x-android
2c25e69d - Persist state of VoiceMessagePresenter in memory (#1795)

Commit
2 years ago
Persist state of VoiceMessagePresenter in memory (#1795) Allows [VoiceMessagePresenter] instances to keep their progress and download states while going in and out of the timeline viewport. This is implemented by caching each instance of a TimelineItem presenter inside the RoomScope. TimelineItem presenters can move some of their state outside of the `present()` function so that such state will survive scrollings of the timeline.
Author
Marco Romano
Parents
Loading