Admin room alias commands

- room alias set
- room alias remove
- room alias which
- room alias list
This commit is contained in:
tezlm authored and strawberry committed 2023-11-26 22:14:59 -05:00
1 parent 6fdeec1108
commit ebb94341c8
4 files changed
+245 -7

No files matched your search

+7
View File
@@ -32,4 +32,11 @@ impl Service {
) -> Box<dyn Iterator<Item = Result<OwnedRoomAliasId>> + 'a> {
self.db.local_aliases_for_room(room_id)
}
#[tracing::instrument(skip(self))]
pub fn all_local_aliases<'a>(
&'a self,
) -> Box<dyn Iterator<Item = Result<(OwnedRoomId, String)>> + 'a> {
self.db.all_local_aliases()
}
}