diff --git a/room-kit/src/main/java/live/hms/roomkit/ui/meeting/MeetingViewModel.kt b/room-kit/src/main/java/live/hms/roomkit/ui/meeting/MeetingViewModel.kt index 36243a5a8..aa5c517c6 100644 --- a/room-kit/src/main/java/live/hms/roomkit/ui/meeting/MeetingViewModel.kt +++ b/room-kit/src/main/java/live/hms/roomkit/ui/meeting/MeetingViewModel.kt @@ -2611,10 +2611,9 @@ class MeetingViewModel( name ?: "Participant" ) } - newState.copy(enabled = !newState.enabled, + pauseChatUseCase.changeChatState(newState.copy(enabled = !newState.enabled, updatedBy = updatedBy - ) - pauseChatUseCase.changeChatState(newState) + )) } val chatPauseState = pauseChatUseCase.currentChatPauseState