Remove overzealous assert in theme.

pull/1/head
Matthew Chen 7 years ago
parent 396a17af37
commit 23088e4121

@ -13,7 +13,7 @@ extern NSString *const ThemeDidChangeNotification;
- (instancetype)init NS_UNAVAILABLE;
@property (class, readonly, nonatomic) BOOL isDarkThemeEnabled;
@property (class, readonly, atomic) BOOL isDarkThemeEnabled;
+ (void)setIsDarkThemeEnabled:(BOOL)value;

@ -20,8 +20,6 @@ NSString *const ThemeKeyThemeEnabled = @"ThemeKeyThemeEnabled";
+ (BOOL)isDarkThemeEnabled
{
OWSAssertIsOnMainThread();
if (!CurrentAppContext().isMainApp) {
// Ignore theme in app extensions.
return NO;

Loading…
Cancel
Save