everything seems to work now

This commit is contained in:
or-else
2021-09-15 17:57:34 -07:00
parent 228cc9669c
commit f51ba69fa7
11 changed files with 97 additions and 62 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ class BaseChatMessage extends React.PureComponent {
let content = this.props.content;
const attachments = [];
if (this.props.mimeType == Drafty.getContentType() && Drafty.isValid(content)) {
Drafty.attachments(content, function(att, i) {
Drafty.attachments(content, (att, i) => {
if (att.mime == 'application/json') {
// Don't show json objects as attachments.
// They are not meant for users.