Revert "core: bulk forward missing files error handling (#4860)"

This reverts commit 46d774a822.
This commit is contained in:
Evgeny Poberezkin
2024-09-12 08:52:09 +01:00
parent 2ab5f14119
commit dfdb4af646
5 changed files with 120 additions and 190 deletions
+1 -5
View File
@@ -298,7 +298,7 @@ data ChatCommand
| APIDeleteChatItem ChatRef (NonEmpty ChatItemId) CIDeleteMode
| APIDeleteMemberChatItem GroupId (NonEmpty ChatItemId)
| APIChatItemReaction {chatRef :: ChatRef, chatItemId :: ChatItemId, add :: Bool, reaction :: MsgReaction}
| APIForwardChatItems {toChatRef :: ChatRef, fromChatRef :: ChatRef, chatItemIds :: NonEmpty ChatItemId, ttl :: Maybe Int, ignoreMissingFiles :: Bool}
| APIForwardChatItems {toChatRef :: ChatRef, fromChatRef :: ChatRef, chatItemIds :: NonEmpty ChatItemId, ttl :: Maybe Int}
| APIUserRead UserId
| UserRead
| APIChatRead ChatRef (Maybe (ChatItemId, ChatItemId))
@@ -1178,10 +1178,6 @@ data ChatErrorType
| CEFallbackToSMPProhibited {fileId :: FileTransferId}
| CEInlineFileProhibited {fileId :: FileTransferId}
| CEInvalidQuote
| CEForwardFilesNotAccepted {files :: [FileTransferId], msgCount :: Int} -- contentCount is the count of messages if files are ignored
| CEForwardFilesInProgress {filesCount :: Int, msgCount :: Int}
| CEForwardFilesMissing {filesCount :: Int, msgCount :: Int}
| CEForwardFilesFailed {filesCount :: Int, msgCount :: Int}
| CEInvalidForward
| CEInvalidChatItemUpdate
| CEInvalidChatItemDelete