various cleanup tweaks/fixes

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk authored and strawberry committed 2024-10-25 00:36:30 -04:00
1 parent 96fcf7f94d
commit 26dcab272d
18 files changed
+86 -99

No files matched your search

+2 -2
View File
@@ -119,12 +119,12 @@ pub(super) async fn process(command: RoomAliasCommand, context: &Command<'_>) ->
room_id,
} => {
if let Some(room_id) = room_id {
let aliases = services
let aliases: Vec<OwnedRoomAliasId> = services
.rooms
.alias
.local_aliases_for_room(&room_id)
.map(Into::into)
.collect::<Vec<OwnedRoomAliasId>>()
.collect()
.await;
let plain_list = aliases.iter().fold(String::new(), |mut output, alias| {