send avatar_url on invite member events like synapse
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
f275a0dfbe
commit
cf62cb0d0a
3 changed files with 5 additions and 5 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue