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

@ -28,7 +28,7 @@ use ruma::{
};
use tracing::{error, info, warn};
/// # `POST /_matrix/client/r0/publicRooms`
/// # `POST /_matrix/client/v3/publicRooms`
///
/// Lists the public rooms on this server.
///
@ -57,7 +57,7 @@ pub async fn get_public_rooms_filtered_route(
.await
}
/// # `GET /_matrix/client/r0/publicRooms`
/// # `GET /_matrix/client/v3/publicRooms`
///
/// Lists the public rooms on this server.
///

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,

View file

@ -29,7 +29,7 @@ use serde_json::{json, value::to_raw_value};
use std::{cmp::max, collections::BTreeMap, sync::Arc};
use tracing::{info, warn};
/// # `POST /_matrix/client/r0/createRoom`
/// # `POST /_matrix/client/v3/createRoom`
///
/// Creates a new room.
///