From 8e15460bdc58bb8fbb4eef0078a9d14d5e060e85 Mon Sep 17 00:00:00 2001 From: JRoberts <8711996+jr-simplex@users.noreply.github.com> Date: Thu, 14 Jul 2022 22:09:20 +0400 Subject: [PATCH] core: use decodeLatin1 in ciGroupInvitationToText --- src/Simplex/Chat/Messages.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Simplex/Chat/Messages.hs b/src/Simplex/Chat/Messages.hs index dc395b72d8..5941deabb6 100644 --- a/src/Simplex/Chat/Messages.hs +++ b/src/Simplex/Chat/Messages.hs @@ -497,7 +497,7 @@ ciDeleteModeToText = \case ciGroupInvitationToText :: CIGroupInfo -> GroupMemberRole -> Text ciGroupInvitationToText CIGroupInfo {groupProfile = GroupProfile {displayName, fullName}} role = - "invitation to join group " <> displayName <> optionalFullName displayName fullName <> " as " <> (safeDecodeUtf8 . strEncode $ role) + "invitation to join group " <> displayName <> optionalFullName displayName fullName <> " as " <> (decodeLatin1 . strEncode $ role) -- This type is used both in API and in DB, so we use different JSON encodings for the database and for the API data CIContent (d :: MsgDirection) where