transition to application/json+drafty as mime type for form responses

This commit is contained in:
or-else
2025-08-07 15:39:43 +03:00
parent 7ce9470bf3
commit 290571f305
6 changed files with 16 additions and 10 deletions
+3 -2
View File
@@ -162,8 +162,9 @@ class BaseChatMessage extends React.PureComponent {
const attachments = [];
if (this.props.mimeType == Drafty.getContentType() && Drafty.isValid(content)) {
Drafty.attachments(content, (att, i) => {
if (att.mime == 'application/json') {
// Don't show json objects as attachments.
if (att.mime == 'application/json+drafty' ||
att.mime == 'application/json') {
// Don't show json drafty form response objects as attachments.
// They are not meant for users.
return;
}