Updated design for inactive primary devices

This commit is contained in:
kate-signal 2025-07-23 11:51:29 -07:00 committed by GitHub
parent af6aaebb83
commit 41b006b081
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 19 additions and 10 deletions

View File

@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "phone-warning.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true
}
}

Binary file not shown.

View File

@ -25,7 +25,7 @@ final class InactivePrimaryDeviceReminderMegaphone: MegaphoneView {
comment: "Body for an in-app megaphone about a user's inactive primary device."
)
imageName = "inactive-linked-device-reminder-megaphone"
imageName = "phone-warning"
imageContentMode = .center
let viewControllerRef = fromViewController

View File

@ -4238,7 +4238,7 @@
"INACTIVE_LINKED_DEVICE_REMINDER_MEGAPHONE_TITLE" = "Inactive Linked Device";
/* Body for an in-app megaphone about a user's inactive primary device. */
"INACTIVE_PRIMARY_DEVICE_REMINDER_MEGAPHONE_BODY" = "Open Signal on your phone to keep your account active";
"INACTIVE_PRIMARY_DEVICE_REMINDER_MEGAPHONE_BODY" = "To keep your account active, open Signal on your primary device.";
/* Title for a button in an in-app megaphone about a user's inactive primary device, temporarily dismissing the megaphone. */
"INACTIVE_PRIMARY_DEVICE_REMINDER_MEGAPHONE_GOT_IT_BUTTON" = "Got It";
@ -4247,7 +4247,7 @@
"INACTIVE_PRIMARY_DEVICE_REMINDER_MEGAPHONE_LEARN_MORE_BUTTON" = "Learn more";
/* Title for an in-app megaphone about a user's inactive primary device. */
"INACTIVE_PRIMARY_DEVICE_REMINDER_MEGAPHONE_TITLE" = "Inactive Primary Device";
"INACTIVE_PRIMARY_DEVICE_REMINDER_MEGAPHONE_TITLE" = "Open Signal on your phone";
/* Label reminding the user that they are in archive mode, and that muted chats remain archived when they receive a new message. */
"INBOX_VIEW_ARCHIVE_MODE_MUTED_CHATS_REMINDER" = "Muted chats that are archived will remain archived when a new message arrives.";

View File

@ -649,11 +649,7 @@ extension ExperienceUpgradeManifest {
}
public static func checkPreconditionsForInactivePrimaryDeviceReminder(tx: DBReadTransaction) -> Bool {
if FeatureFlags.inactivePrimaryDeviceMegaphone {
return DependenciesBridge.shared.inactivePrimaryDeviceStore.valueForInactivePrimaryDeviceAlert(transaction: tx)
}
return false
return DependenciesBridge.shared.inactivePrimaryDeviceStore.valueForInactivePrimaryDeviceAlert(transaction: tx)
}
public static func checkPreconditionsForPinReminder(transaction: DBReadTransaction) -> Bool {

View File

@ -61,8 +61,6 @@ public enum FeatureFlags {
public static let libsignalEnforceMinTlsVersion = false
public static let moveDraftsUpChatList = build.includes(.internal)
public static let inactivePrimaryDeviceMegaphone = build.includes(.dev)
}
// MARK: -