dedup servers in get_alias_helper
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
da539efb98
commit
edd74efbf2
1 changed files with 4 additions and 0 deletions
|
@ -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))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue