Don't count unread messages for DebugChannel

master
Noah 2024-05-13 22:28:38 -07:00
parent 747f4fd5d4
commit b82e8f651b
1 changed files with 7 additions and 1 deletions

View File

@ -2846,7 +2846,13 @@ export default {
// Mark unread notifiers if this is not our channel.
if (this.channel !== channel || !this.windowFocused) {
// 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++;
}
}