Skip to content

Conversation

@ImTheKai
Copy link
Collaborator

@ImTheKai ImTheKai commented Feb 9, 2026

No description provided.

Signed-off-by: Kai Wagner <kai.wagner@percona.com>
Signed-off-by: Kai Wagner <kai.wagner@percona.com>
Signed-off-by: Kai Wagner <kai.wagner@percona.com>
… message directly

Signed-off-by: Kai Wagner <kai.wagner@percona.com>
@ImTheKai ImTheKai requested a review from dutow February 9, 2026 17:21
- if status.to_s == "reading"
- read_count = state[:read_count].to_i
- total_count = topic.message_count
- reading_unread_count = [total_count - read_count, 0].max
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need the exact count? If the status is reading, we have at least one unread messages, and that's all we need here

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because without we can show "has-new-replies" even when there are no unread messages? The envelope icon also only appears when reading_unread_count is positive, which is why we used the count to gate the has-new-replies or what am I missing?

padding: var(--spacing-2) var(--spacing-4) var(--spacing-2) var(--spacing-2);
align-self: stretch;
height: 100%;
min-width: var(--topic-title-icons-width, 190px);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this won't look strange?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why would this look strange? Did you pull and look at it?

Signed-off-by: Kai Wagner <kai.wagner@percona.com>
…unread message

Signed-off-by: Kai Wagner <kai.wagner@percona.com>
@ImTheKai ImTheKai merged commit 45d4fcd into hackorum-dev:main Feb 9, 2026
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