Fix newer Clippy warnings for 1.80 (#301)
This commit is contained in:
@@ -1346,9 +1346,7 @@ impl ChatStore {
|
||||
|
||||
/// Get a joined room.
|
||||
pub fn get_joined_room(&self, room_id: &RoomId) -> Option<MatrixRoom> {
|
||||
let Some(room) = self.worker.client.get_room(room_id) else {
|
||||
return None;
|
||||
};
|
||||
let room = self.worker.client.get_room(room_id)?;
|
||||
|
||||
if room.state() == MatrixRoomState::Joined {
|
||||
Some(room)
|
||||
|
||||
Reference in New Issue
Block a user