Skip to content

Commit

Permalink
Hacky Hack McHackFace
Browse files Browse the repository at this point in the history
  • Loading branch information
bnjbvr committed Nov 27, 2024
1 parent 28ffa47 commit baafadc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions crates/matrix-sdk/src/event_cache/room/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ impl RoomEventCacheInner {

let event_cache_store =
client.get().expect("TODO replace with error handling?").event_cache_store().clone();

let weak_room = WeakRoom::new(client, room_id.clone());

Ok(Self {
Expand Down Expand Up @@ -359,10 +360,11 @@ impl RoomEventCacheInner {
let mut state = self.state.write().await;

// Reset the room's state.
state.reset().await?;
// TODO(bnjbvr)
//state.reset().await?;

// Propagate to observers.
let _ = self.sender.send(RoomEventCacheUpdate::Clear);
//let _ = self.sender.send(RoomEventCacheUpdate::Clear);

// Push the new events.
self.append_events_locked_impl(
Expand All @@ -375,7 +377,7 @@ impl RoomEventCacheInner {
.await?;

// Reset the paginator status to initial.
self.paginator.set_idle_state(PaginatorState::Initial, prev_batch, None)?;
//self.paginator.set_idle_state(PaginatorState::Initial, prev_batch, None)?;

Ok(())
}
Expand Down

0 comments on commit baafadc

Please sign in to comment.