Do not show update PIN megaphone on linked devices

This commit is contained in:
Oscar Mira 2025-04-14 13:55:24 +02:00
parent a9fc77885b
commit 79893098c7
No known key found for this signature in database
GPG key ID: B371B98C5DC32237

View file

@ -18,6 +18,7 @@ class UpdatePinAfterAepRegistrationSchedule : MegaphoneSchedule {
override fun shouldDisplay(seenCount: Int, lastSeen: Long, firstVisible: Long, currentTime: Long): Boolean {
return !SignalStore.svr.hasPin() &&
!SignalStore.svr.hasOptedOut() &&
!SignalStore.account.isLinkedDevice &&
SignalStore.registration.isRegistrationComplete &&
(!SignalStore.backup.isMediaRestoreInProgress || hasBeenLongEnough())
}