Skip to content

Commit

Permalink
Call stats screen (#992)
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandar-apostolov authored Jan 25, 2024
1 parent 7faa15e commit 1c67906
Show file tree
Hide file tree
Showing 7 changed files with 740 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ fun CallScreen(
var isShowingReactionsMenu by remember { mutableStateOf(false) }
var isShowingAvailableDeviceMenu by remember { mutableStateOf(false) }
var isBackgroundBlurEnabled by remember { mutableStateOf(false) }
var isShowingStats by remember { mutableStateOf(false) }
var layout by remember { mutableStateOf(LayoutType.DYNAMIC) }
var unreadCount by remember { mutableIntStateOf(0) }
val chatState = rememberModalBottomSheetState(
Expand Down Expand Up @@ -333,6 +334,7 @@ fun CallScreen(
isBackgroundBlurEnabled = !isBackgroundBlurEnabled
isShowingSettingMenu = false
},
onShowCallStats = { isShowingStats = true },
)
}

Expand All @@ -355,6 +357,10 @@ fun CallScreen(
)
}

if (isShowingStats) {
CallStatsDialog(call) { isShowingStats = false }
}

if (isShowingAvailableDeviceMenu) {
AvailableDeviceMenu(
call = call,
Expand Down
Loading

0 comments on commit 1c67906

Please sign in to comment.