Make set_state public to avoid unused warning

This commit is contained in:
Andy Balaam
2023-06-13 13:43:46 +01:00
parent f36a5b8cd7
commit 240a7f7aae

View File

@@ -650,7 +650,8 @@ impl RoomInfo {
self.room_state = RoomState::Invited;
}
pub(crate) fn set_state(&mut self, room_state: RoomState) {
/// Set the membership RoomState of this Room
pub fn set_state(&mut self, room_state: RoomState) {
self.room_state = room_state;
}