Skip to content

Commit 6515ace

Browse files
committed
fix(spaces): mitigate eventual race conditions when updating the pagination state
1 parent 3c45e4b commit 6515ace

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/matrix-sdk-ui/src/spaces/room_list.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ impl SpaceRoomList {
201201
_ => {}
202202
}
203203

204-
self.pagination_state.set(SpaceRoomListPaginationState::Loading);
204+
self.pagination_state.set_if_not_eq(SpaceRoomListPaginationState::Loading);
205205

206206
let mut request = get_hierarchy::v1::Request::new(self.parent_space_id.clone());
207207
request.max_depth = Some(uint!(1)); // We only want the immediate children of the space

0 commit comments

Comments
 (0)