Skip to content

Don't count "joined the server" lines as unread - #354

Merged
grytchat merged 1 commit into
mainfrom
claude/GRYT-1992-unread-skip-system
Nov 1, 2026
Merged

grytchat merged 1 commit into
mainfrom
claude/GRYT-1992-unread-skip-system

Conversation

@grytchat

@grytchat grytchat commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Server 1.12.2 counts unread in unopened channels from when you joined (#352). Your own join line lands just after that moment, so a new member sees a badge of 1 on a channel nobody has written in, and every later join adds one. That is live on stable. It also makes client e2e red on main: the badge changes the channel row's name, so navigation.spec.ts:37 cannot find it.

Both queries now skip messages from the system sender.

Look at: this is in db/, so it needs your read. It also changes channels that already have a marker: a join line after your marker no longer counts. That is a behaviour change, and I think the right one.

Tested: new cases in readMarkers.test.ts, and the client e2e navigation test against a local image built from this branch.

After merge this needs a server release for client CI to go green, since e2e runs against server:latest.

Seen here and not changed: in that test the join line landed in bravo-notes, not General. getSystemChannelId takes the first text channel from listServerChannels.

🤖 Generated with Claude Code

Since unopened channels count from when you joined, your own join line showed as
one unread message, and every later join added another.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@grytchat
grytchat requested a review from sivert-io as a code owner November 1, 2026 00:29
@grytchat
grytchat merged commit d8d2354 into main Nov 1, 2026
8 checks passed
@grytchat
grytchat deleted the claude/GRYT-1992-unread-skip-system branch November 1, 2026 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants