Regression: messageAttachments inside messageAttachments not receiving settings (#15733)

pull/15741/head^2
Guilherme Gazzo 6 years ago committed by Diego Sampaio
parent 6eb37f6c3f
commit 3c94b0bd1b
  1. 1
      app/message-attachments/client/messageAttachment.html
  2. 4
      app/message-attachments/client/messageAttachment.js

@ -170,6 +170,7 @@
{{/if}}
{{#each attachments}}
{{injectSettings . ../settings}}
{{injectIndex . ../index @index}} {{> messageAttachment}}
{{/each}}
</div>

@ -68,7 +68,9 @@ Template.messageAttachment.helpers({
injectIndex(data, previousIndex, index) {
data.index = `${ previousIndex }.attachments.${ index }`;
},
injectSettings(data, settings) {
data.settings = settings;
},
isFile() {
return this.type === 'file';
},

Loading…
Cancel
Save