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
|
@ -28,7 +28,7 @@ use ruma::{
|
||||||
};
|
};
|
||||||
use tracing::{error, info, warn};
|
use tracing::{error, info, warn};
|
||||||
|
|
||||||
/// # `POST /_matrix/client/r0/publicRooms`
|
/// # `POST /_matrix/client/v3/publicRooms`
|
||||||
///
|
///
|
||||||
/// Lists the public rooms on this server.
|
/// Lists the public rooms on this server.
|
||||||
///
|
///
|
||||||
|
@ -57,7 +57,7 @@ pub async fn get_public_rooms_filtered_route(
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
|
|
||||||
/// # `GET /_matrix/client/r0/publicRooms`
|
/// # `GET /_matrix/client/v3/publicRooms`
|
||||||
///
|
///
|
||||||
/// Lists the public rooms on this server.
|
/// Lists the public rooms on this server.
|
||||||
///
|
///
|
||||||
|
|
|
@ -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.
|
/// 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 state_lock = mutex_state.lock().await;
|
||||||
|
|
||||||
let content = to_raw_value(&RoomMemberEventContent {
|
let content = to_raw_value(&RoomMemberEventContent {
|
||||||
avatar_url: None,
|
avatar_url: services().users.avatar_url(user_id)?,
|
||||||
displayname: None,
|
displayname: None,
|
||||||
is_direct: Some(is_direct),
|
is_direct: Some(is_direct),
|
||||||
membership: MembershipState::Invite,
|
membership: MembershipState::Invite,
|
||||||
|
|
|
@ -29,7 +29,7 @@ use serde_json::{json, value::to_raw_value};
|
||||||
use std::{cmp::max, collections::BTreeMap, sync::Arc};
|
use std::{cmp::max, collections::BTreeMap, sync::Arc};
|
||||||
use tracing::{info, warn};
|
use tracing::{info, warn};
|
||||||
|
|
||||||
/// # `POST /_matrix/client/r0/createRoom`
|
/// # `POST /_matrix/client/v3/createRoom`
|
||||||
///
|
///
|
||||||
/// Creates a new room.
|
/// Creates a new room.
|
||||||
///
|
///
|
||||||
|
|
Loading…
Add table
Reference in a new issue