Signal-iOS/SignalMessaging
Michelle Linington a2791717fd IOS-782: +[Theme sharedInstance] re-enterant initialization
This bug fixes an issue where if the +[Theme sharedInstance] was first
initialized after AppReady and while in dark mode, we'd reenterantly
call +sharedInstance and crash on a dispatch_once assert.

This has been an existing issue that's only manifest recently due to
unrelated changes (will document below). To workaround this limitation,
we need to break the synchronous chain from +sharedInstance to
-themeDidChange. The most straightforward way to do that is to re-async.

This is a tiny bit of fallout from dc543ce. That commit did a bunch of
work to simplify OWSNavigationController's handling of its navigation
bar. Before, the navigation bar would be configured during
-[OWSNavigationController init]. It looks like UIKit lazily initializes
the navigation bar at first access, and the navigation bar would call
out to +[Theme sharedInstance].

Now, that work doesn't happen during -init. This means that the
sharesheet extension used to indirectly call +[Theme sharedInstance]
before AppReady, but now it doesn't. Now, its first call to +[Theme
sharedInstance] happens after AppReady.
2020-08-19 10:28:43 -07:00
..
appearance IOS-782: +[Theme sharedInstance] re-enterant initialization 2020-08-19 10:28:43 -07:00
attachments Refine MentionTextView, add cut/copy/paste support 2020-07-27 14:30:52 -07:00
categories Fix call video orientation handling 2020-08-17 15:41:11 -07:00
contacts IOS-717: Filter out non-e164s in our CDS lookups 2020-08-14 12:25:37 -07:00
environment Don't use CallKit for video calls received while the app is active 2020-08-17 15:41:10 -07:00
groups Refine error retry handling. 2020-08-13 10:32:40 -03:00
Notifications Don't use CallKit for video calls received while the app is active 2020-08-17 15:41:10 -07:00
profiles Merge remote-tracking branch 'private/release/3.14.2' 2020-08-18 10:55:28 -03:00
Storage Service Refine error retry handling. 2020-08-13 10:32:40 -03:00
utils Fix pip animation 2020-08-18 13:26:05 -07:00
ViewControllers Fix pip animation 2020-08-18 13:26:05 -07:00
ViewModels Full suppoort for ention send + receive 2020-08-04 14:08:30 -07:00
Views Don't use CallKit for video calls received while the app is active 2020-08-17 15:41:10 -07:00
Info.plist Shared framework between app and extension 2017-11-29 13:58:27 -08:00
SignalMessaging-Prefix.pch Label the "slow write transactions" logging with the source of the transaction. 2020-06-07 10:37:55 -03:00
SignalMessaging.h Implement attachment upload v3. 2020-08-01 12:06:57 -03:00