diff --git a/app/ui-message/client/message.js b/app/ui-message/client/message.js index d7e20e547f2..bb4f59f70ed 100644 --- a/app/ui-message/client/message.js +++ b/app/ui-message/client/message.js @@ -1,4 +1,5 @@ import _ from 'underscore'; +import { Meteor } from 'meteor/meteor'; import { Tracker } from 'meteor/tracker'; import { Template } from 'meteor/templating'; import { Session } from 'meteor/session'; @@ -451,7 +452,7 @@ Template.message.helpers({ }, showStar() { const { msg } = this; - return msg.starred && !(msg.actionContext === 'starred' || this.context === 'starred'); + return msg.starred && msg.starred.length > 0 && msg.starred.find((star) => star._id === Meteor.userId()) && !(msg.actionContext === 'starred' || this.context === 'starred'); }, });