fix(membership): Return the local join error when there are no remote servers to try

This commit is contained in:
Erwan Leboucher committed 2026-11-13 16:57:29 +01:00
1 parent 4ebcf299e2
commit 77e8a6b41b
2 files changed
+4

No files matched your search

@@ -0,0 +1 @@
Joining a local room the user is not allowed to join now returns `403 M_FORBIDDEN` instead of `500 M_UNKNOWN` when there are no other servers to try.
+3
View File
@@ -221,6 +221,9 @@ impl Service {
// We couldn't authorize a local join, probably because it's
// restricted and we couldn't satisfy
// the join rules ourselves.
if servers.is_empty() {
return Err(err);
}
info!(?err, "Failed to join room locally, trying over federation instead");
},
}