canCreateRooms method
- Channel channel
Whether channel may create a room under the configured policy.
Implementation
bool canCreateRooms(Channel channel) {
final user = _authenticatedUsers[channel];
if (authentication.policy.requireForRoomCreation && user == null) {
return false;
}
return user?.canCreateRooms ?? true;
}