From c363a18e5fffa5990755ee0db03481cb1eb5742a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Wed, 16 Aug 2023 11:13:26 +0200 Subject: [PATCH] timeline: Don't change state when Timeline is cleared. It is not really in its initial state since it should be ready to load more events. --- src/session/model/room/timeline/mod.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/session/model/room/timeline/mod.rs b/src/session/model/room/timeline/mod.rs index e6d82a6f..a33173e2 100644 --- a/src/session/model/room/timeline/mod.rs +++ b/src/session/model/room/timeline/mod.rs @@ -384,7 +384,6 @@ impl Timeline { imp.sdk_items.remove_all(); imp.event_map.take(); - self.set_state(TimelineState::Initial); } /// Get the event with the given key from this `Timeline`.