mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-13 20:26:52 +00:00
fix(membership): Return the local join error when there are no remote servers to try
This commit is contained in:
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.
|
||||
@@ -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");
|
||||
},
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user