Fixed crush in the getChannelHistory method (#22667)

There is a typo in the 56 line. I've added 'hiddenMessageTypes'.
How to reproduce:
- call getChannelHistory method with 'oldest' param.

Co-authored-by: pierre-lehnen-rc <55164754+pierre-lehnen-rc@users.noreply.github.com>
pull/22632/head^2
Artem Agafonov 5 years ago committed by GitHub
parent 0819dab467
commit 48da604646
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/lib/server/methods/getChannelHistory.js

@ -53,7 +53,7 @@ Meteor.methods({
const records = _.isUndefined(oldest)
? Messages.findVisibleByRoomIdBeforeTimestampNotContainingTypes(rid, latest, hiddenMessageTypes, options, showThreadMessages, inclusive).fetch()
: Messages.findVisibleByRoomIdBetweenTimestampsNotContainingTypes(rid, oldest, latest, options, showThreadMessages, inclusive).fetch();
: Messages.findVisibleByRoomIdBetweenTimestampsNotContainingTypes(rid, oldest, latest, hiddenMessageTypes, options, showThreadMessages, inclusive).fetch();
const messages = normalizeMessagesForUser(records, fromUserId);

Loading…
Cancel
Save