Skip to main content

knock_room_handler

Function knock_room_handler 

Source
async fn knock_room_handler(
    __arg0: State<ServerState>,
    __arg1: AuthenticatedClientRequest<Request>,
) -> Result<ArminiusResponse<Response>, JoinRoomByIdError>
Expand description

Handler for POST /_matrix/client/v3/knock/{roomIdOrAlias} (See https://spec.matrix.org/v1.15/client-server-api/#post_matrixclientv3knockroomidoralias).

This endpoint is used to knock on a room.

NOTE: For now, only querying this endpoint with a RoomId will work, since room aliases aren’t implemented yet.