Try to handle federated joins for restricted rooms

This commit is contained in:
Neil Alexander 2021-11-02 15:09:08 +00:00
parent 237dd1045f
commit 9a38db199f
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
3 changed files with 172 additions and 1 deletions

View file

@ -149,6 +149,12 @@ func MissingParam(msg string) *MatrixError {
return &MatrixError{"M_MISSING_PARAM", msg}
}
// UnableToAuthoriseJoin is an error that is returned when a server that we
// are trying to join via doesn't know enough to authorise a restricted join.
func UnableToAuthoriseJoin(msg string) *MatrixError {
return &MatrixError{"M_UNABLE_TO_AUTHORISE_JOIN", msg}
}
type IncompatibleRoomVersionError struct {
RoomVersion string `json:"room_version"`
Error string `json:"error"`