mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 03:06:37 +00:00
8c9edd5ea9
The room summary provider publishes its loading state and its rooms through two independent streams, so the state can report loaded before the first summaries have been applied. Flipping the room list mode to .rooms at that point renders an empty list until the summaries arrive. Combine the two publishers into a single subscription so that the mode and the rooms are always updated from the same pair of values, and keep the skeletons up until the rooms have published. Only the initial transition is held back, an empty list later on is a filter or a search result and must not send the mode back to the skeletons.