send avatar_url on invite member events like synapse

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-01-20 12:44:17 -05:00 committed by June
parent f275a0dfbe
commit cf62cb0d0a
3 changed files with 5 additions and 5 deletions

View file

@ -130,7 +130,7 @@ pub async fn join_room_by_id_or_alias_route(
})
}
/// # `POST /_matrix/client/r0/rooms/{roomId}/leave`
/// # `POST /_matrix/client/v3/rooms/{roomId}/leave`
///
/// Tries to leave the sender user from a room.
///
@ -1242,7 +1242,7 @@ pub(crate) async fn invite_helper(
let state_lock = mutex_state.lock().await;
let content = to_raw_value(&RoomMemberEventContent {
avatar_url: None,
avatar_url: services().users.avatar_url(user_id)?,
displayname: None,
is_direct: Some(is_direct),
membership: MembershipState::Invite,