core: prohibit SMP file handshake for XFTP files on sender side, except for images and voice messages (#2201)

This commit is contained in:
spaced4ndy
2023-04-18 18:51:14 +04:00
committed by GitHub
parent e66f5d488b
commit e51f7a51cc
3 changed files with 21 additions and 4 deletions
+1
View File
@@ -795,6 +795,7 @@ data ChatErrorType
| CEFileNotReceived {fileId :: FileTransferId}
| CEXFTPRcvFile {fileId :: FileTransferId, agentRcvFileId :: AgentRcvFileId, agentError :: AgentErrorType}
| CEXFTPSndFile {fileId :: FileTransferId, agentSndFileId :: AgentSndFileId, agentError :: AgentErrorType}
| CEFallbackToSMPProhibited {fileId :: FileTransferId}
| CEInlineFileProhibited {fileId :: FileTransferId}
| CEInvalidQuote
| CEInvalidChatItemUpdate