Skip to content

Commit

Permalink
Apply $and helper to message template (#17280)
Browse files Browse the repository at this point in the history
  • Loading branch information
tassoevan authored Apr 13, 2020
1 parent 2afc3ec commit 58b14d1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion app/ui-message/client/message.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
</div>
{{/if}}

{{#if and settings.showReplyButton msg.tcount}}
{{#if $and settings.showReplyButton msg.tcount}}
<div class="message-discussion">
<button class="js-open-thread rc-button rc-button--primary rc-button--small" data-rid={{roomId}}>
{{> icon icon="thread"}}
Expand Down
3 changes: 0 additions & 3 deletions app/ui-message/client/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ Template.message.helpers({
const { msg, settings } = this;
return Tracker.nonreactive(() => renderBody(msg, settings));
},
and(a, b) {
return a && b;
},
i18nReplyCounter() {
const { msg } = this;
return `<span class='reply-counter'>${ msg.tcount }</span>`;
Expand Down

0 comments on commit 58b14d1

Please sign in to comment.