[FIX] Discussions not loading message history if not joined (#24316)

pull/24324/head^2
gabriellsh 4 years ago committed by GitHub
parent a39b0e880f
commit 862befbbbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      server/methods/loadHistory.js

@ -18,7 +18,7 @@ Meteor.methods({
const fromId = Meteor.userId();
const room = Rooms.findOneById(rid, { fields: { t: 1 } });
const room = Rooms.findOneById(rid);
if (!room) {
return false;
}
@ -27,10 +27,6 @@ Meteor.methods({
return false;
}
if (!room) {
return false;
}
const canAnonymous = settings.get('Accounts_AllowAnonymousRead');
const canPreview = hasPermission(fromId, 'preview-c-room');

Loading…
Cancel
Save