diff --git a/apps/android/app/src/main/java/chat/simplex/app/model/SimpleXAPI.kt b/apps/android/app/src/main/java/chat/simplex/app/model/SimpleXAPI.kt index d537599df7..2696596147 100644 --- a/apps/android/app/src/main/java/chat/simplex/app/model/SimpleXAPI.kt +++ b/apps/android/app/src/main/java/chat/simplex/app/model/SimpleXAPI.kt @@ -2028,7 +2028,7 @@ data class FullChatPreferences( val fullDelete: SimpleChatPreference, val voice: SimpleChatPreference, ) { - fun toPreferences(): ChatPreferences = ChatPreferences(fullDelete = fullDelete, voice = voice) + fun toPreferences(): ChatPreferences = ChatPreferences(timedMessages = timedMessages, fullDelete = fullDelete, voice = voice) companion object { val sampleData = FullChatPreferences( @@ -2041,9 +2041,9 @@ data class FullChatPreferences( @Serializable data class ChatPreferences( - val timedMessages: TimedMessagesPreference? = null, - val fullDelete: SimpleChatPreference? = null, - val voice: SimpleChatPreference? = null, + val timedMessages: TimedMessagesPreference?, + val fullDelete: SimpleChatPreference?, + val voice: SimpleChatPreference?, ) { fun setAllowed(feature: ChatFeature, allowed: FeatureAllowed = FeatureAllowed.YES): ChatPreferences = when (feature) {