Add checks to thread record deserialization that can be resymbolicated.
This commit is contained in:
parent
bcbb301ac8
commit
781ffa5741
@ -16,6 +16,7 @@ class NotificationServiceExtensionContext: NSObject, AppContext {
|
||||
var shouldProcessIncomingMessages: Bool { true }
|
||||
var hasUI: Bool { false }
|
||||
func canPresentNotifications() -> Bool { true }
|
||||
var didLastLaunchCrash: Bool { false }
|
||||
|
||||
let appLaunchTime = Date()
|
||||
lazy var buildTime: Date = {
|
||||
|
||||
@ -414,6 +414,11 @@ NSString *const ReportedApplicationStateDidChangeNotification = @"ReportedApplic
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (BOOL)didLastLaunchCrash
|
||||
{
|
||||
return SignalApp.sharedApp.didLastLaunchCrash;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
@ -580,7 +580,7 @@ public extension ThreadRecord {
|
||||
|
||||
init(row: Row) {
|
||||
// TODO: Remove these temporary checks.
|
||||
if ThreadRecord.hasChecked.tryToSetFlag() {
|
||||
if ThreadRecord.hasChecked.tryToSetFlag() || CurrentAppContext().didLastLaunchCrash {
|
||||
ThreadRecord.check(checker: ThreadRowCheckerImpl(row: row))
|
||||
}
|
||||
|
||||
|
||||
@ -194,6 +194,11 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (BOOL)didLastLaunchCrash
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
|
||||
@ -129,6 +129,8 @@ NSString *NSStringForUIApplicationState(UIApplicationState value);
|
||||
|
||||
@property (nonatomic, readonly) BOOL hasUI;
|
||||
|
||||
@property (nonatomic, readonly) BOOL didLastLaunchCrash;
|
||||
|
||||
@end
|
||||
|
||||
id<AppContext> CurrentAppContext(void);
|
||||
|
||||
@ -318,6 +318,11 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (BOOL)didLastLaunchCrash
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
Loading…
Reference in New Issue
Block a user