This commit is contained in:
Erik 2021-10-22 10:34:48 +03:00
parent 1d09d3291b
commit 775b063c42
No known key found for this signature in database
GPG Key ID: FEFF4B220DDF5589

View File

@ -164,7 +164,7 @@ class ChannelHandler {
for (let i = context < len ? context : len; i > 0; i--) {
const entry = history[len - i];
if (!entry) continue;
if (entry.readState === 'read') continue;
if ([ 'read', 'unread' ].includes(entry.readState)) continue;
const user = await this.client.resolveUser(entry.author).catch(this.client.logger.error.bind(this.client.logger));
const mem = await this.modmail.getMember(user.id).catch(this.client.logger.error.bind(this.client.logger));