Always get the identifier from the theme.

This commit is contained in:
David Langley
2021-09-10 11:14:42 +01:00
parent ebcaa37568
commit a962dfff29
@@ -111,9 +111,9 @@ final class AppCoordinator: NSObject, AppCoordinatorType {
MXLog.error("[AppCoordinator] No theme id found to update ThemePublisher")
}
// Always republish theme change events
// Always republish theme change events, and again always getting the identifier from the theme.
let themeIdPublisher = NotificationCenter.default.publisher(for: Notification.Name.themeServiceDidChangeTheme)
.compactMap({ _ in ThemeService.shared().themeIdentifier })
.compactMap({ _ in ThemeIdentifier(rawValue: ThemeService.shared().theme.identifier) })
.eraseToAnyPublisher()
ThemePublisher.shared.republish(themeIdPublisher: themeIdPublisher)