func IsServerBannedFromRoom(ctx context.Context, rsAPI RoomserverInternalAPI, roomID string, serverName gomatrixserverlib.ServerName) bool {
	req := &QueryServerBannedFromRoomRequest{
		ServerName: serverName,
		RoomID:     roomID,
	}
	res := &QueryServerBannedFromRoomResponse{}
	if err := rsAPI.QueryServerBannedFromRoom(ctx, req, res); err != nil {
		util.GetLogger(ctx).WithError(err).Error("Failed to QueryServerBannedFromRoom")
		return true
	}
	return res.Banned
}
// IsServerBannedFromRoom returns whether the server is banned from a room by server ACLs.
IsServerBannedFromRoom returns whether the server is banned from a room by server ACLs.
// IsServerBannedFromRoom returns whether the server is banned from a room by server ACLs .
func IsServerBannedFromRoom(ctx context.Context, rsAPI RoomserverInternalAPI, roomID string, serverName gomatrixserverlib.ServerName) bool {
	req := &QueryServerBannedFromRoomRequest{
		ServerName: serverName,
		RoomID:     roomID,
	}
	res := &QueryServerBannedFromRoomResponse{}
	if err := rsAPI.QueryServerBannedFromRoom(ctx, req, res); err != nil {
		util.GetLogger(ctx).WithError(err).Error("Failed to QueryServerBannedFromRoom")
		return true
	}
	return res.Banned
}
func IsServerBannedFromRoom ( ctx context . Context , rsAPI RoomserverInternalAPI , roomID string , serverName gomatrixserverlib . ServerName ) bool { req := & QueryServerBannedFromRoomRequest { ServerName : serverName , RoomID : roomID , } res := & QueryServerBannedFromRoomResponse { } if err := rsAPI . QueryServerBannedFromRoom ( ctx , req , res ) ; err != nil { util . GetLogger ( ctx ) . WithError ( err ) . Error ( " " ) return true } return res . Banned }
IsServerBannedFromRoom returns whether the server is banned from a room by server ACLs.
IsServerBannedFromRoom returns whether the server is banned from a room by server ACLs .