Fix useless if let seq.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
cf13f5afc1
commit
eca01cfb3f
1 changed files with 5 additions and 4 deletions
|
|
@ -571,10 +571,11 @@ where
|
|||
(target_membership == MembershipState::Join).then_some(&power_levels.users_default)
|
||||
});
|
||||
|
||||
let mut join_rules = JoinRule::Invite;
|
||||
if let Some(jr) = &join_rules_event {
|
||||
join_rules = from_json_str::<RoomJoinRulesEventContent>(jr.content().get())?.join_rule;
|
||||
}
|
||||
let join_rules = if let Some(jr) = &join_rules_event {
|
||||
from_json_str::<RoomJoinRulesEventContent>(jr.content().get())?.join_rule
|
||||
} else {
|
||||
JoinRule::Invite
|
||||
};
|
||||
|
||||
let power_levels_event_id = power_levels_event.as_ref().map(Event::event_id);
|
||||
let sender_membership_event_id = sender_membership_event
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue