Skip to content

Commit

Permalink
fix: flickering call other participants video (WPB-9617) (#3188)
Browse files Browse the repository at this point in the history
  • Loading branch information
yamilmedina authored Jul 18, 2024
1 parent 72143b6 commit 129fb9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.flow.SharedFlow
import kotlinx.coroutines.flow.SharingStarted
import kotlinx.coroutines.flow.collectLatest
import kotlinx.coroutines.flow.distinctUntilChanged
import kotlinx.coroutines.flow.filterIsInstance
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.flow.flowOn
Expand Down Expand Up @@ -174,7 +175,7 @@ class SharedCallingViewModel @AssistedInject constructor(
}

private suspend fun observeParticipants(sharedFlow: SharedFlow<Call?>) {
sharedFlow.collect { call ->
sharedFlow.distinctUntilChanged().collectLatest { call ->
call?.let {
callState = callState.copy(
isMuted = it.isMuted,
Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ androidx-compose-runtime = "1.6.7"

# Compose
composeBom = "2024.06.00"
compose-foundation = "1.7.0-beta04" # remove when composeBom contains new stable version of BasicTextField2
compose-material-android = "1.7.0-beta04" # remove when composeBom contains new stable version of BasicTextField2
compose-foundation = "1.7.0-beta05" # remove when composeBom contains new stable version of BasicTextField2
compose-material-android = "1.7.0-beta05" # remove when composeBom contains new stable version of BasicTextField2
compose-activity = "1.9.0"
compose-compiler = "1.5.11"
compose-constraint = "1.0.1"
Expand Down

0 comments on commit 129fb9a

Please sign in to comment.