default shared history vis on unknown visibilities, drop needless error log
Signed-off-by: June Clementine Strawberry <june@3.dog>
This commit is contained in:
parent
74012c5289
commit
1036f8dfa8
2 changed files with 4 additions and 4 deletions
|
@ -50,8 +50,8 @@ pub async fn server_can_see_event(
|
||||||
.await
|
.await
|
||||||
},
|
},
|
||||||
| _ => {
|
| _ => {
|
||||||
error!("Unknown history visibility {history_visibility}");
|
debug_info!(%room_id, "Unknown history visibility, defaulting to shared: {history_visibility:?}");
|
||||||
false
|
true
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -119,8 +119,8 @@ pub async fn user_can_see_event(
|
||||||
self.user_was_joined(shortstatehash, user_id).await
|
self.user_was_joined(shortstatehash, user_id).await
|
||||||
},
|
},
|
||||||
| _ => {
|
| _ => {
|
||||||
error!("Unknown history visibility {history_visibility}");
|
debug_info!(%room_id, "Unknown history visibility, defaulting to shared: {history_visibility:?}");
|
||||||
false
|
currently_member
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue