base: Don't double borrow the response in one iter rooms method.

This commit is contained in:
Damir Jelić 2020-07-03 12:30:57 +02:00
parent 1f25c4cf4b
commit bd56c52b37

View file

@ -946,7 +946,7 @@ impl BaseClient {
// when events change state, updated_* signals to StateStore to update database
self.iter_joined_rooms(response).await?;
self.iter_invited_rooms(&response).await?;
self.iter_invited_rooms(response).await?;
self.iter_left_rooms(response).await?;
let store = self.state_store.read().await;