Fix PN extension setup

This commit is contained in:
nielsandriesse 2020-12-02 16:46:12 +11:00
parent d6c115bc2a
commit 7f8cc2f57b
1 changed files with 2 additions and 2 deletions

View File

@ -84,8 +84,6 @@ final class NotificationServiceExtension : UNNotificationServiceExtension {
// This should be the first thing we do.
SetCurrentAppContext(NotificationServiceExtensionContext())
SignalUtilitiesKit.Configuration.performMainSetup()
DebugLogger.shared().enableTTYLogging()
if _isDebugAssertConfiguration() {
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.
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.
AppReadiness.setAppIsReady()
}