Regression: reactAttachments cpu (#20255)

pull/20264/head
Guilherme Gazzo 5 years ago committed by GitHub
parent 3adb7ac589
commit 5027bf5ff6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/ui-message/client/message.html
  2. 4
      app/ui-message/client/message.js

@ -115,7 +115,9 @@
{{> oembedBaseWidget}}
{{/each}}
{{/if}}
{{> reactAttachments attachments=msg.attachments file=msg.file }}
{{#if hasAttachments}}
{{> reactAttachments attachments=msg.attachments file=msg.file }}
{{/if}}
{{#if msg.drid}}
{{> DiscussionMetric count=msg.dcount drid=msg.drid lm=msg.dlm openDiscussion=actions.openDiscussion }}
{{/if}}

@ -112,6 +112,10 @@ Template.message.helpers({
const { msg } = this;
return msg.bot && 'bot';
},
hasAttachments() {
const { msg } = this;
return msg.attachments?.length;
},
roleTags() {
const { msg, hideRoles, settings } = this;
if (settings.hideRoles || hideRoles) {

Loading…
Cancel
Save