mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-22 20:18:36 +00:00
Fix shadowed variable warning.
This commit is contained in:
@@ -163,11 +163,11 @@ class MessageBackupsFlowViewModel(
|
|||||||
RecurringInAppPaymentRepository.getActiveSubscriptionSync(InAppPaymentSubscriberRecord.Type.BACKUP)
|
RecurringInAppPaymentRepository.getActiveSubscriptionSync(InAppPaymentSubscriberRecord.Type.BACKUP)
|
||||||
}
|
}
|
||||||
|
|
||||||
activeSubscription.onSuccess {
|
activeSubscription.onSuccess { subscription ->
|
||||||
if (it.isCanceled) {
|
if (subscription.isCanceled) {
|
||||||
Log.d(TAG, "Active subscription is cancelled. Clearing tier.")
|
Log.d(TAG, "Active subscription is cancelled. Clearing tier.")
|
||||||
internalStateFlow.update { it.copy(currentMessageBackupTier = null) }
|
internalStateFlow.update { it.copy(currentMessageBackupTier = null) }
|
||||||
} else if (it.isActive) {
|
} else if (subscription.isActive) {
|
||||||
Log.d(TAG, "Active subscription is active. Setting tier.")
|
Log.d(TAG, "Active subscription is active. Setting tier.")
|
||||||
internalStateFlow.update { it.copy(currentMessageBackupTier = SignalStore.backup.backupTier) }
|
internalStateFlow.update { it.copy(currentMessageBackupTier = SignalStore.backup.backupTier) }
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user