CanSendEvent default to true and branch refresh mechanism...

This commit is contained in:
ganfra 2023-06-21 17:43:08 +02:00
parent 9df0030967
commit 8e617b427d
2 changed files with 4 additions and 4 deletions

View file

@ -88,7 +88,7 @@ class MessagesPresenter @Inject constructor(
val retryState = retrySendMenuPresenter.present()
val syncUpdateFlow = room.syncUpdateFlow().collectAsState(0L)
val userHasPermissionToSendMessage by room.canSendEventAsState(type = MessageEventType.ROOM_MESSAGE)
val userHasPermissionToSendMessage by room.canSendEventAsState(type = MessageEventType.ROOM_MESSAGE, updateKey = syncUpdateFlow.value)
val roomName: MutableState<String?> = rememberSaveable {
mutableStateOf(null)
}