1
0
Fork 0
mirror of https://forgejo.ellis.link/continuwuation/continuwuity.git synced 2025-07-28 02:38:30 +00:00

forgor is_err check too

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-04-22 01:44:22 -04:00 committed by June
parent ebc59e6f15
commit 93c3e6dec8

View file

@ -151,12 +151,7 @@ pub(crate) async fn get_alias_helper(
);
}
if response.as_ref().is_ok_and(|resp| resp.servers.is_empty()) {
debug_warn!(
"Server {} responded with room aliases, but was empty? Response: {response:?}",
room_alias.server_name()
);
if response.as_ref().is_ok_and(|resp| resp.servers.is_empty()) || response.as_ref().is_err() {
if let Some(servers) = servers {
for server in servers {
response = services()