mirror of
https://gitlab.com/famedly/conduit.git
synced 2025-08-06 17:40:59 +00:00
fix: Include m.room.member in invite_room_state
This commit is contained in:
parent
7ddd32aeff
commit
3c13d6e17b
1 changed files with 8 additions and 1 deletions
|
@ -702,7 +702,14 @@ pub(crate) async fn invite_helper(
|
|||
&state_lock,
|
||||
)?;
|
||||
|
||||
let invite_room_state = services().rooms.state.stripped_state(&pdu.room_id)?;
|
||||
let mut invite_room_state = services().rooms.state.stripped_state(&pdu.room_id)?;
|
||||
if let Some(sender) = services().rooms.state_accessor.room_state_get(
|
||||
&pdu.room_id,
|
||||
&StateEventType::RoomMember,
|
||||
sender_user.as_str(),
|
||||
)? {
|
||||
invite_room_state.push(sender.to_stripped_state_event());
|
||||
}
|
||||
|
||||
drop(state_lock);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue