Updated design for inactive primary devices
This commit is contained in:
parent
af6aaebb83
commit
41b006b081
15
Signal/Images.xcassets/phone-warning.imageset/Contents.json
vendored
Normal file
15
Signal/Images.xcassets/phone-warning.imageset/Contents.json
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"filename" : "phone-warning.pdf",
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
},
|
||||
"properties" : {
|
||||
"preserves-vector-representation" : true
|
||||
}
|
||||
}
|
||||
BIN
Signal/Images.xcassets/phone-warning.imageset/phone-warning.pdf
vendored
Normal file
BIN
Signal/Images.xcassets/phone-warning.imageset/phone-warning.pdf
vendored
Normal file
Binary file not shown.
@ -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
|
||||
|
||||
@ -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.";
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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: -
|
||||
|
||||
Loading…
Reference in New Issue
Block a user