Fix equatable if let
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
b525031a25
commit
89d7d48324
4 changed files with 13 additions and 11 deletions
|
@ -631,7 +631,7 @@ pub async fn join_room_by_id_helper(
|
|||
) -> Result<join_room_by_id::v3::Response> {
|
||||
let sender_user = sender_user.expect("user is authenticated");
|
||||
|
||||
if let Ok(true) = services().rooms.state_cache.is_joined(sender_user, room_id) {
|
||||
if matches!(services().rooms.state_cache.is_joined(sender_user, room_id), Ok(true)) {
|
||||
info!("{sender_user} is already joined in {room_id}");
|
||||
return Ok(join_room_by_id::v3::Response {
|
||||
room_id: room_id.into(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue