Prevent connexion in progress when going back to waiting room

This commit is contained in:
Sylvain Berfini 2025-02-25 09:27:17 +01:00
parent 296a324ba3
commit f1b23337e0
2 changed files with 3 additions and 1 deletions

View file

@ -111,10 +111,12 @@ class MeetingWaitingRoomViewModel
when (state) {
Call.State.End -> {
Log.i("$TAG Call has ended, leaving waiting room fragment")
joining.postValue(false)
leaveWaitingRoomEvent.postValue(Event(true))
}
Call.State.Error -> {
Log.w("$TAG Call has failed, leaving waiting room fragment")
joining.postValue(false)
leaveWaitingRoomEvent.postValue(Event(true))
}
else -> {}

View file

@ -196,7 +196,7 @@
android:layout_width="0dp"
android:layout_height="0dp"
android:background="@color/gray_900"
android:visibility="@{viewModel.joining ? View.VISIBLE : View.GONE}"
android:visibility="@{viewModel.joining ? View.VISIBLE : View.GONE, default=gone}"
app:layout_constraintTop_toBottomOf="@id/back"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"