dedup servers in get_alias_helper

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-01-13 18:10:10 -05:00 committed by June
parent da539efb98
commit edd74efbf2

View file

@ -116,6 +116,8 @@ pub(crate) async fn get_alias_helper(
servers.insert(0, services().globals.server_name().to_owned()); servers.insert(0, services().globals.server_name().to_owned());
} }
servers.dedup();
return Ok(get_alias::v3::Response::new(room_id, servers)); return Ok(get_alias::v3::Response::new(room_id, servers));
} }
@ -199,5 +201,7 @@ pub(crate) async fn get_alias_helper(
servers.insert(0, services().globals.server_name().to_owned()); servers.insert(0, services().globals.server_name().to_owned());
} }
servers.dedup();
Ok(get_alias::v3::Response::new(room_id, servers)) Ok(get_alias::v3::Response::new(room_id, servers))
} }