Ensure call links UX is still available post new calling features.

This commit is contained in:
Cody Henthorne
2023-12-20 11:06:46 -05:00
committed by Clark Chen
parent b55a9f253e
commit 624f863da4
15 changed files with 287 additions and 411 deletions

View File

@@ -119,7 +119,8 @@ fun SignalCallRow(
.align(CenterVertically)
) {
Text(
text = callLink.state.name.ifEmpty { stringResource(id = R.string.CreateCallLinkBottomSheetDialogFragment__signal_call) }
text = callLink.state.name.ifEmpty { stringResource(id = R.string.CreateCallLinkBottomSheetDialogFragment__signal_call) },
color = MaterialTheme.colorScheme.onSurface
)
Text(
text = callUrl,

View File

@@ -92,6 +92,7 @@ class CreateCallLinkBottomSheetDialogFragment : ComposeBottomSheetDialogFragment
Text(
text = stringResource(id = R.string.CreateCallLinkBottomSheetDialogFragment__create_call_link),
style = MaterialTheme.typography.titleLarge,
color = MaterialTheme.colorScheme.onSurface,
textAlign = TextAlign.Center,
modifier = Modifier.fillMaxWidth()
)

View File

@@ -9,7 +9,6 @@ import androidx.compose.runtime.Immutable
import org.thoughtcrime.securesms.database.CallLinkTable
@Immutable
@Deprecated("Merge with ControlsAndInfoState")
data class CallLinkDetailsState(
val displayRevocationDialog: Boolean = false,
val callLink: CallLinkTable.CallLink? = null

View File

@@ -22,7 +22,6 @@ import org.thoughtcrime.securesms.recipients.Recipient
import org.thoughtcrime.securesms.service.webrtc.links.CallLinkRoomId
import org.thoughtcrime.securesms.service.webrtc.links.UpdateCallLinkResult
@Deprecated("Merge with ControlsAndInfoViewModel")
class CallLinkDetailsViewModel(
callLinkRoomId: CallLinkRoomId,
repository: CallLinkDetailsRepository = CallLinkDetailsRepository(),