From 26a14ab5bddc4f4ce1b80b02b79fe986838f080d Mon Sep 17 00:00:00 2001 From: QuentinArguillere Date: Fri, 11 Jun 2021 10:22:13 +0200 Subject: [PATCH] Add button to enable/disable ephemeral message feature in the chat conversations --- Classes/LinphoneCoreSettingsStore.m | 2 ++ Settings/InAppSettings.bundle/Chat.plist | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/Classes/LinphoneCoreSettingsStore.m b/Classes/LinphoneCoreSettingsStore.m index 20986dc37..4b7128750 100644 --- a/Classes/LinphoneCoreSettingsStore.m +++ b/Classes/LinphoneCoreSettingsStore.m @@ -344,6 +344,7 @@ [self setInteger:maxSize forKey:@"auto_download_incoming_files_max_size"]; [self setBool:[VFSUtil vfsEnabledWithGroupName:kLinphoneMsgNotificationAppGroupId] forKey:@"vfs_enabled_mode"]; [self setBool:[lm lpConfigBoolForKey:@"auto_write_to_gallery_preference" withDefault:YES] forKey:@"auto_write_to_gallery_mode"]; + [self setBool:[lm lpConfigBoolForKey:@"ephemeral_feature" withDefault:NO] forKey:@"ephemeral_feature"]; } // network section @@ -806,6 +807,7 @@ } } [lm lpConfigSetBool:[self boolForKey:@"auto_write_to_gallery_mode"] forKey:@"auto_write_to_gallery_preference"]; + [lm lpConfigSetBool:[self boolForKey:@"ephemeral_feature"] forKey:@"ephemeral_feature"]; // network section BOOL edgeOpt = [self boolForKey:@"edge_opt_preference"]; diff --git a/Settings/InAppSettings.bundle/Chat.plist b/Settings/InAppSettings.bundle/Chat.plist index d5e3c9395..a8727c126 100644 --- a/Settings/InAppSettings.bundle/Chat.plist +++ b/Settings/InAppSettings.bundle/Chat.plist @@ -60,6 +60,16 @@ IASKTextAlignment IASKUITextAlignmentRight + + DefaultValue + + Key + ephemeral_feature + Title + Enable ephemeral messages (beta) + Type + PSToggleSwitchSpecifier + Type PSGroupSpecifier