include ban reasons when banning a user that already had a member event

The case where the user never had a member event in the room is already
handled correctly.
This commit is contained in:
Olivia Lee 2025-05-04 14:15:27 -07:00 committed by Lambda
parent c965c9747b
commit 188eac5cfd
2 changed files with 4 additions and 0 deletions

View file

@ -288,6 +288,7 @@ pub(crate) async fn ban_user_route(
RoomMemberEventContent {
membership: MembershipState::Ban,
join_authorized_via_users_server: None,
reason: body.reason.clone(),
..event
}
})