mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 00:59:49 +01:00
Initial pass to properly check multi-device environment in various spots.
This commit is contained in:
@@ -180,7 +180,7 @@ object LinkDeviceRepository {
|
||||
|
||||
return when (deviceLinkResult) {
|
||||
is NetworkResult.Success -> {
|
||||
SignalStore.account.hasLinkedDevices = true
|
||||
SignalStore.account.isMultiDevice = true
|
||||
LinkDeviceResult.Success(verificationCodeResult.tokenIdentifier)
|
||||
}
|
||||
is NetworkResult.ApplicationError -> throw deviceLinkResult.throwable
|
||||
|
||||
@@ -17,7 +17,7 @@ data class LinkDeviceSettingsState(
|
||||
val qrCodeState: QrCodeState = QrCodeState.NONE,
|
||||
val linkUri: Uri? = null,
|
||||
val linkDeviceResult: LinkDeviceResult = LinkDeviceResult.None,
|
||||
val seenQrEducationSheet: Boolean = SignalStore.uiHints.hasSeenLinkDeviceQrEducationSheet() || SignalStore.account.hasLinkedDevices,
|
||||
val seenQrEducationSheet: Boolean = SignalStore.uiHints.hasSeenLinkDeviceQrEducationSheet() || SignalStore.account.isMultiDevice,
|
||||
val bottomSheetVisible: Boolean = false,
|
||||
val deviceToEdit: Device? = null,
|
||||
val shouldCancelArchiveUpload: Boolean = false,
|
||||
|
||||
Reference in New Issue
Block a user