Fix warnings in InMemoryAppPreferencesStore (#4523)

This commit is contained in:
Benoit Marty 2025-04-02 18:03:14 +02:00 committed by GitHub
parent a3ce1d484d
commit 6a180cb279

View file

@ -18,7 +18,6 @@ class InMemoryAppPreferencesStore(
hideImagesAndVideos: Boolean = false, hideImagesAndVideos: Boolean = false,
customElementCallBaseUrl: String? = null, customElementCallBaseUrl: String? = null,
theme: String? = null, theme: String? = null,
simplifiedSlidingSyncEnabled: Boolean = false,
logLevel: LogLevel = LogLevel.INFO, logLevel: LogLevel = LogLevel.INFO,
traceLockPacks: Set<TraceLogPack> = emptySet(), traceLockPacks: Set<TraceLogPack> = emptySet(),
) : AppPreferencesStore { ) : AppPreferencesStore {
@ -26,7 +25,6 @@ class InMemoryAppPreferencesStore(
private val hideImagesAndVideos = MutableStateFlow(hideImagesAndVideos) private val hideImagesAndVideos = MutableStateFlow(hideImagesAndVideos)
private val customElementCallBaseUrl = MutableStateFlow(customElementCallBaseUrl) private val customElementCallBaseUrl = MutableStateFlow(customElementCallBaseUrl)
private val theme = MutableStateFlow(theme) private val theme = MutableStateFlow(theme)
private val simplifiedSlidingSyncEnabled = MutableStateFlow(simplifiedSlidingSyncEnabled)
private val logLevel = MutableStateFlow(logLevel) private val logLevel = MutableStateFlow(logLevel)
private val tracingLogPacks = MutableStateFlow(traceLockPacks) private val tracingLogPacks = MutableStateFlow(traceLockPacks)
@ -70,8 +68,8 @@ class InMemoryAppPreferencesStore(
return logLevel return logLevel
} }
override suspend fun setTracingLogPacks(logPacks: Set<TraceLogPack>) { override suspend fun setTracingLogPacks(targets: Set<TraceLogPack>) {
tracingLogPacks.value = logPacks tracingLogPacks.value = targets
} }
override fun getTracingLogPacksFlow(): Flow<Set<TraceLogPack>> { override fun getTracingLogPacksFlow(): Flow<Set<TraceLogPack>> {