auto create rooms during create agent dispatch api request (#3158)

This commit is contained in:
Paul Wells
2024-11-05 16:15:05 -08:00
committed by GitHub
parent 365e63230d
commit 09f140afa8
7 changed files with 75 additions and 111 deletions
+2 -2
View File
@@ -51,8 +51,8 @@ func NewRoomAllocator(conf *config.Config, router routing.Router, rs ObjectStore
}, nil
}
func (r *StandardRoomAllocator) CreateRoomEnabled() bool {
return r.config.Room.CreateRoomEnabled
func (r *StandardRoomAllocator) AutoCreateEnabled(context.Context) bool {
return r.config.Room.AutoCreate
}
// CreateRoom creates a new room from a request and allocates it to a node to handle