Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Room): Use subscribe_reset for subscribe_info (instead of just subscribe) #4276

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion crates/matrix-sdk-base/src/rooms/normal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -856,8 +856,11 @@ impl Room {
}

/// Subscribe to the inner `RoomInfo`.
///
/// Behaves like a `subscribe_reset`:
/// The first call to `next().await` will immediately return the current info.
pub fn subscribe_info(&self) -> Subscriber<RoomInfo> {
self.inner.subscribe()
self.inner.subscribe_reset()
}

/// Clone the inner `RoomInfo`.
Expand Down
Loading