Admin room alias commands

- room alias set
- room alias remove
- room alias which
- room alias list
This commit is contained in:
tezlm 2023-10-03 20:42:31 -07:00 committed by strawberry
parent 6fdeec1108
commit ebb94341c8
4 changed files with 245 additions and 7 deletions

View file

@ -16,4 +16,9 @@ pub trait Data: Send + Sync {
&'a self,
room_id: &RoomId,
) -> Box<dyn Iterator<Item = Result<OwnedRoomAliasId>> + 'a>;
/// Returns all local aliases on the server
fn all_local_aliases<'a>(
&'a self,
) -> Box<dyn Iterator<Item = Result<(OwnedRoomId, String)>> + 'a>;
}