StateRegistry
constructor(userStateFlow: StateFlow<User?>, latestUsers: StateFlow<Map<String, User>>, activeLiveLocations: StateFlow<List<Location>>, job: Job, now: () -> Long, scope: CoroutineScope, messageLimitConfig: MessageLimitConfig, mutedUsers: StateFlow<List<Mute>> = MutableStateFlow(emptyList()), useLegacyChannelState: Boolean = true)
Parameters
userStateFlow
The state flow that provides the user once it is set.
latestUsers
Latest users of the SDK.
activeLiveLocations
Latest live locations of the SDK.
job
A background job cancelled after calling clear.
scope
A scope for new coroutines.
messageLimitConfig
Configuration for message limits.
mutedUsers
The current list of muted users.
useLegacyChannelState
Whether to use the legacy channel state implementation.