mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-03-30 20:45:49 +00:00
core: use decodeLatin1 in ciGroupInvitationToText
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user