mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-14 11:05:32 -04:00
matrix-sdk: (fix) use macro for matching in are_events_visible
This commit is contained in:
@@ -184,10 +184,10 @@ impl Common {
|
||||
|
||||
fn are_events_visible(&self) -> bool {
|
||||
if let RoomType::Invited = self.inner.room_type() {
|
||||
return match self.inner.history_visibility() {
|
||||
HistoryVisibility::WorldReadable | HistoryVisibility::Invited => true,
|
||||
_ => false,
|
||||
};
|
||||
return matches!(
|
||||
self.inner.history_visibility(),
|
||||
HistoryVisibility::WorldReadable | HistoryVisibility::Invited
|
||||
);
|
||||
}
|
||||
|
||||
true
|
||||
|
||||
Reference in New Issue
Block a user