mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Add @MainActor to some of the hook points.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
import Compound
|
||||
|
||||
protocol CompoundHookProtocol {
|
||||
func override(colors: CompoundColors, uiColors: CompoundUIColors)
|
||||
@MainActor func override(colors: CompoundColors, uiColors: CompoundUIColors)
|
||||
}
|
||||
|
||||
struct DefaultCompoundHook: CompoundHookProtocol {
|
||||
|
||||
@@ -15,11 +15,11 @@ enum RemoteSettingsError: Error {
|
||||
|
||||
protocol RemoteSettingsHookProtocol {
|
||||
#if IS_MAIN_APP
|
||||
func initializeCache(using client: ClientProtocol, applyingTo appSettings: CommonSettingsProtocol) async -> Result<Void, RemoteSettingsError>
|
||||
@MainActor func initializeCache(using client: ClientProtocol, applyingTo appSettings: CommonSettingsProtocol) async -> Result<Void, RemoteSettingsError>
|
||||
func updateCache(using client: ClientProtocol) async
|
||||
func reset(_ appSettings: CommonSettingsProtocol)
|
||||
@MainActor func reset(_ appSettings: CommonSettingsProtocol)
|
||||
#endif
|
||||
func loadCache(forHomeserver homeserver: String, applyingTo appSettings: CommonSettingsProtocol)
|
||||
@MainActor func loadCache(forHomeserver homeserver: String, applyingTo appSettings: CommonSettingsProtocol)
|
||||
}
|
||||
|
||||
struct DefaultRemoteSettingsHook: RemoteSettingsHookProtocol {
|
||||
|
||||
Reference in New Issue
Block a user