Ensure that canUserJoinCall is "live"

This commit is contained in:
Benoit Marty 2024-01-29 12:15:14 +01:00
parent 96bae05184
commit 6406477fef

View file

@ -155,7 +155,7 @@ class MessagesPresenter @AssistedInject constructor(
mutableStateOf(false)
}
LaunchedEffect(Unit) {
LaunchedEffect(syncUpdateFlow) {
withContext(dispatchers.io) {
canJoinCall = room.canUserJoinCall(room.sessionId).getOrDefault(false)
}