grapevine/src/api/client_server
Andreas Fuchs e001356653
Return local join error if all remote joins fail
If all join requests to resident servers fail or if the joining server
is the only resident server (i.e. the room is local-only), we would
previously send a 500 error, even if the more correct response would be
M_UNAUTHORIZED (e.g. if the user tries to join an invite-only room).

To fix this, we now return the error generated by attempting the join
locally, which correctly informs the client about why their request
failed.
2024-10-13 19:10:58 -07:00
..
account.rs Update MSRV to 1.81.0 2024-09-08 09:54:08 -07:00
alias.rs refuse admin room alias changes unless admin bot 2024-06-12 18:36:55 -07:00
backup.rs rename Ruma to Ar 2024-05-19 19:04:20 -07:00
capabilities.rs chore: deprecate support for unstable room versions 2024-08-12 06:18:28 +02:00
config.rs rename Ruma to Ar 2024-05-19 19:04:20 -07:00
context.rs Update MSRV to 1.81.0 2024-09-08 09:54:08 -07:00
device.rs enable assigning_clones lint 2024-05-26 19:47:00 -07:00
directory.rs fix api/client_server/directory events 2024-07-16 11:12:07 -07:00
filter.rs rename Ruma to Ar 2024-05-19 19:04:20 -07:00
keys.rs changelog entry for remote device key query logging 2024-08-11 16:39:08 -07:00
media.rs use OwnedMxcUri in media service 2024-09-15 00:32:17 -07:00
membership.rs Return local join error if all remote joins fail 2024-10-13 19:10:58 -07:00
message.rs Update MSRV to 1.81.0 2024-09-08 09:54:08 -07:00
profile.rs Use TokenSet for roomid_mutex_state 2024-07-22 18:07:03 +00:00
push.rs rename Ruma to Ar 2024-05-19 19:04:20 -07:00
read_marker.rs rename Ruma to Ar 2024-05-19 19:04:20 -07:00
redact.rs Use TokenSet for roomid_mutex_state 2024-07-22 18:07:03 +00:00
relations.rs upgrade all cargo dependencies 2024-05-26 19:47:00 -07:00
report.rs rename Ruma to Ar 2024-05-19 19:04:20 -07:00
room.rs fix room version comparisons 2024-09-26 13:01:25 -07:00
search.rs Add PduId wrapper struct 2024-09-06 17:20:14 +00:00
session.rs fix api/client_server/session events 2024-07-16 11:12:08 -07:00
space.rs rename Ruma to Ar 2024-05-19 19:04:20 -07:00
state.rs Use TokenSet for roomid_mutex_state 2024-07-22 18:07:03 +00:00
sync.rs Update MSRV to 1.81.0 2024-09-08 09:54:08 -07:00
tag.rs rename Ruma to Ar 2024-05-19 19:04:20 -07:00
thirdparty.rs rename Ruma to Ar 2024-05-19 19:04:20 -07:00
threads.rs rename Ruma to Ar 2024-05-19 19:04:20 -07:00
to_device.rs Properly type stored EDUs 2024-09-06 17:20:14 +00:00
typing.rs upgrade all cargo dependencies 2024-05-26 19:47:00 -07:00
unversioned.rs client_server: use and provide authenticated media API 2024-09-01 09:42:45 +00:00
user_directory.rs Update MSRV to 1.81.0 2024-09-08 09:54:08 -07:00
voip.rs rename Ruma to Ar 2024-05-19 19:04:20 -07:00