Ensure that canUserJoinCall is "live"

This commit is contained in:
Benoit Marty
2024-01-29 12:15:14 +01:00
parent 78da1d6a18
commit aefad3faa1

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)
}