Rework: improve OnGoingCallIcon API.
This commit is contained in:
parent
4035c1ca5b
commit
01ba6aa917
1 changed files with 10 additions and 14 deletions
|
|
@ -173,9 +173,9 @@ private fun RowScope.LastMessageAndIndicatorRow(room: RoomListRoomSummary) {
|
||||||
verticalAlignment = Alignment.CenterVertically,
|
verticalAlignment = Alignment.CenterVertically,
|
||||||
) {
|
) {
|
||||||
// Video call
|
// Video call
|
||||||
OnGoingCallIcon(
|
if (room.hasRoomCall) {
|
||||||
room.hasRoomCall,
|
OnGoingCallIcon()
|
||||||
)
|
}
|
||||||
// Other indicators
|
// Other indicators
|
||||||
NotificationIcons(
|
NotificationIcons(
|
||||||
room.userDefinedNotificationMode,
|
room.userDefinedNotificationMode,
|
||||||
|
|
@ -186,17 +186,13 @@ private fun RowScope.LastMessageAndIndicatorRow(room: RoomListRoomSummary) {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
private fun OnGoingCallIcon(
|
private fun OnGoingCallIcon() {
|
||||||
hasRoomCall: Boolean,
|
Icon(
|
||||||
) {
|
modifier = Modifier.size(16.dp),
|
||||||
if (hasRoomCall) {
|
imageVector = CompoundIcons.VideoCallSolid,
|
||||||
Icon(
|
contentDescription = null,
|
||||||
modifier = Modifier.size(16.dp),
|
tint = ElementTheme.colors.unreadIndicator,
|
||||||
imageVector = CompoundIcons.VideoCallSolid,
|
)
|
||||||
contentDescription = null,
|
|
||||||
tint = ElementTheme.colors.unreadIndicator,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue