Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
56c47e806f
commit
6aac769246
3 files changed
+10
-4
No files matched your search
@@ -780,8 +780,11 @@ func (r *Rooms) joinChat(ctx context.Context, n int64, inviteID string) *http.Re
|
||||
}
|
||||
// Refused as the client's own refusals are (it shows the explanation; booted ones as booted).
|
||||
reason := int64(0)
|
||||
if a.Reason == "banned" {
|
||||
switch a.Reason {
|
||||
case "banned":
|
||||
reason = errorPublicRoomBooted
|
||||
case "full":
|
||||
reason = errorPublicRoomFull
|
||||
}
|
||||
return xmlrpcAnswer(xmlrpc.Struct{{Name: "response", Value: "declined"}, {Name: "reason", Value: reason}, {Name: "explanation", Value: msg}})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user