[FIX] errors when viewing a room that you're not subscribed to (#21984)

pull/21685/head^2
pierre-lehnen-rc 4 years ago committed by GitHub
parent 294a9f81fe
commit 51298cef16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/ui-message/client/message.js

@ -62,12 +62,12 @@ Template.message.helpers({
},
mention() {
const { msg, subscription } = this;
return subscription.tunreadUser?.includes(msg._id);
return subscription?.tunreadUser?.includes(msg._id);
},
all() {
const { msg, subscription } = this;
return subscription.tunreadGroup?.includes(msg._id);
return subscription?.tunreadGroup?.includes(msg._id);
},
following() {
const { msg, u } = this;

Loading…
Cancel
Save