Don't count unread messages for DebugChannel

This commit is contained in:
Noah 2024-05-13 22:28:38 -07:00
parent 747f4fd5d4
commit b82e8f651b

View File

@ -2846,7 +2846,13 @@ export default {
// Mark unread notifiers if this is not our channel. // Mark unread notifiers if this is not our channel.
if (this.channel !== channel || !this.windowFocused) { if (this.channel !== channel || !this.windowFocused) {
// Don't notify about presence broadcasts or history-backfilled messages. // Don't notify about presence broadcasts or history-backfilled messages.
if (action !== "presence" && action !== "notification" && !isChatServer && !unshift) { if (
channel !== DebugChannelID && // don't notify about debug channel
action !== "presence" &&
action !== "notification" &&
!isChatServer &&
!unshift // not when backfilling old logs
) {
this.channels[channel].unread++; this.channels[channel].unread++;
} }
} }