Fix PN extension setup
This commit is contained in:
parent
d6c115bc2a
commit
7f8cc2f57b
|
@ -84,8 +84,6 @@ final class NotificationServiceExtension : UNNotificationServiceExtension {
|
||||||
// This should be the first thing we do.
|
// This should be the first thing we do.
|
||||||
SetCurrentAppContext(NotificationServiceExtensionContext())
|
SetCurrentAppContext(NotificationServiceExtensionContext())
|
||||||
|
|
||||||
SignalUtilitiesKit.Configuration.performMainSetup()
|
|
||||||
|
|
||||||
DebugLogger.shared().enableTTYLogging()
|
DebugLogger.shared().enableTTYLogging()
|
||||||
if _isDebugAssertConfiguration() {
|
if _isDebugAssertConfiguration() {
|
||||||
DebugLogger.shared().enableFileLogging()
|
DebugLogger.shared().enableFileLogging()
|
||||||
|
@ -153,6 +151,8 @@ final class NotificationServiceExtension : UNNotificationServiceExtension {
|
||||||
// App isn't ready until storage is ready AND all version migrations are complete.
|
// App isn't ready until storage is ready AND all version migrations are complete.
|
||||||
guard OWSStorage.isStorageReady() && areVersionMigrationsComplete else { return }
|
guard OWSStorage.isStorageReady() && areVersionMigrationsComplete else { return }
|
||||||
|
|
||||||
|
SignalUtilitiesKit.Configuration.performMainSetup()
|
||||||
|
|
||||||
// Note that this does much more than set a flag; it will also run all deferred blocks.
|
// Note that this does much more than set a flag; it will also run all deferred blocks.
|
||||||
AppReadiness.setAppIsReady()
|
AppReadiness.setAppIsReady()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue