-
Notifications
You must be signed in to change notification settings - Fork 4
Multiple fixes #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple fixes #47
Conversation
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>
| - 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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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>
No description provided.