Optimize media: enabled by default.

This commit is contained in:
Benoit Marty 2024-10-31 10:43:09 +01:00
parent 0a64dd173d
commit c0a77e819b
4 changed files with 7 additions and 7 deletions

View file

@ -83,7 +83,7 @@ class DefaultSessionPreferencesStore(
override fun isSessionVerificationSkipped(): Flow<Boolean> = get(skipSessionVerification) { false }
override suspend fun setCompressMedia(compress: Boolean) = update(compressMedia, compress)
override fun doesCompressMedia(): Flow<Boolean> = get(compressMedia) { false }
override fun doesCompressMedia(): Flow<Boolean> = get(compressMedia) { true }
override suspend fun clear() {
dataStoreFile.safeDelete()

View file

@ -18,7 +18,7 @@ class InMemorySessionPreferencesStore(
isSendTypingNotificationsEnabled: Boolean = true,
isRenderTypingNotificationsEnabled: Boolean = true,
isSessionVerificationSkipped: Boolean = false,
doesCompressMedia: Boolean = false,
doesCompressMedia: Boolean = true,
) : SessionPreferencesStore {
private val isSharePresenceEnabled = MutableStateFlow(isSharePresenceEnabled)
private val isSendPublicReadReceiptsEnabled = MutableStateFlow(isSendPublicReadReceiptsEnabled)