matrix-sdk: (fix) use macro for matching in are_events_visible
This commit is contained in:
parent
ae5be67322
commit
58369fe7d0
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue