core, ui: message signing (#7115)

This commit is contained in:
spaced4ndy authored and GitHub committed 2026-07-10 19:55:10 +00:00
1 parent ee51168374
commit 51ad366e8b
70 files changed
+1742 -388

No files matched your search

+1 -1
View File
@@ -86,7 +86,7 @@ chatCommandsDocsData =
),
( "Message commands",
"Commands to send, update, delete, moderate messages and set message reactions",
[ ("APISendMessages", [], "Send messages.", ["CRNewChatItems", "CRChatCmdError"], [], Just UNBackground, "/_send " <> Param "sendRef" <> OnOffParam "live" "liveMessage" (Just False) <> Optional "" (" ttl=" <> Param "$0") "ttl" <> " json " <> Json "composedMessages"),
[ ("APISendMessages", [], "Send messages.", ["CRNewChatItems", "CRChatCmdError"], [], Just UNBackground, "/_send " <> Param "sendRef" <> OnOffParam "live" "liveMessage" (Just False) <> Optional "" (" ttl=" <> Param "$0") "ttl" <> OnOffParam "sign" "signMessages" (Just False) <> " json " <> Json "composedMessages"),
( "APIUpdateChatItem",
[],
"Update message.",
+2
View File
@@ -322,6 +322,7 @@ chatTypesDocsData =
(sti @MsgReaction, STUnion, "MR", [], "", ""),
(sti @MsgReceiptStatus, STEnum, "MR", [], "", ""),
(sti @MsgSigStatus, STEnum, "MSS", [], "", ""),
(sti @MsgVerified, STUnion, "MV", [], "", ""),
(sti @NameErrorType, STUnion, "", [], "", ""),
(sti @NetworkError, STUnion, "NE", [], "", ""),
(sti @NewUser, STRecord, "", [], "", ""),
@@ -554,6 +555,7 @@ deriving instance Generic MsgFilter
deriving instance Generic MsgReaction
deriving instance Generic MsgReceiptStatus
deriving instance Generic MsgSigStatus
deriving instance Generic MsgVerified
deriving instance Generic NameErrorType
deriving instance Generic NetworkError
deriving instance Generic NewUser
+2 -1
View File
@@ -240,7 +240,8 @@ toTypeInfo tr =
[ "FullDeleteGroupPreference",
"ReactionsGroupPreference",
"ReportsGroupPreference",
"HistoryGroupPreference"
"HistoryGroupPreference",
"SignMessagesGroupPreference"
]
roleGroupPrefTypes =
[ "DirectMessagesGroupPreference",