mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-30 13:16:58 +02:00
Always get the identifier from the theme.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user