From 25b02239439f9f7faa9ca3c20d3e89244e55542a Mon Sep 17 00:00:00 2001 From: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com> Date: Thu, 21 Dec 2023 22:01:07 +0400 Subject: [PATCH] rename feature --- src/Simplex/Chat/Types/Preferences.hs | 2 +- tests/ChatTests/Groups.hs | 8 ++++---- tests/ChatTests/Utils.hs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Simplex/Chat/Types/Preferences.hs b/src/Simplex/Chat/Types/Preferences.hs index a0d336382b..5c79680c50 100644 --- a/src/Simplex/Chat/Types/Preferences.hs +++ b/src/Simplex/Chat/Types/Preferences.hs @@ -175,7 +175,7 @@ groupFeatureNameText = \case GFReactions -> "Message reactions" GFVoice -> "Voice messages" GFFiles -> "Files and media" - GFHistory -> "History" + GFHistory -> "Recent history" groupFeatureNameText' :: SGroupFeature f -> Text groupFeatureNameText' = groupFeatureNameText . toGroupFeature diff --git a/tests/ChatTests/Groups.hs b/tests/ChatTests/Groups.hs index b9da93d866..b133afdd70 100644 --- a/tests/ChatTests/Groups.hs +++ b/tests/ChatTests/Groups.hs @@ -1460,7 +1460,7 @@ testGroupDescription = testChat4 aliceProfile bobProfile cathProfile danProfile alice <## "Message reactions: on" alice <## "Voice messages: on" alice <## "Files and media: on" - alice <## "History: on" + alice <## "Recent history: on" bobAddedDan :: HasCallStack => TestCC -> IO () bobAddedDan cc = do cc <## "#team: bob added dan (Daniel) to the group (connecting...)" @@ -4261,16 +4261,16 @@ testGroupHistoryPreferenceOff = alice ##> "/set history #team off" alice <## "updated group preferences:" - alice <## "History: off" + alice <## "Recent history: off" concurrentlyN_ [ do bob <## "alice updated group #team:" bob <## "updated group preferences:" - bob <## "History: off", + bob <## "Recent history: off", do cath <## "alice updated group #team:" cath <## "updated group preferences:" - cath <## "History: off" + cath <## "Recent history: off" ] connectUsers alice dan diff --git a/tests/ChatTests/Utils.hs b/tests/ChatTests/Utils.hs index 97aa77557c..07537f76f3 100644 --- a/tests/ChatTests/Utils.hs +++ b/tests/ChatTests/Utils.hs @@ -222,7 +222,7 @@ groupFeatures'' = ((0, "Message reactions: on"), Nothing, Nothing), ((0, "Voice messages: on"), Nothing, Nothing), ((0, "Files and media: on"), Nothing, Nothing), - ((0, "History: on"), Nothing, Nothing) + ((0, "Recent history: on"), Nothing, Nothing) ] itemId :: Int -> String