feat(message): add an option to hide the count on single-reaction chips - #1965
Open
Th-Underscore wants to merge 2 commits into
Open
feat(message): add an option to hide the count on single-reaction chips#1965Th-Underscore wants to merge 2 commits into
Th-Underscore wants to merge 2 commits into
Conversation
Th-Underscore
force-pushed
the
feat/message-reaction-counts
branch
from
August 27, 2026 03:14
1f744c2 to
7697d1c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds an opt-in setting, Hide Single Reaction Counts (Settings -> General -> Messages, default off), that hides the count numeral on reaction chips where only one user reacted - the single glyph already conveys who reacted, and single-digit aggregates mostly come from bots re-paginating. If requested, more precise functionality (only removing the number when a bot reacts to its own message) can be included instead.
When the count is hidden, the chip's padding is rebalanced (
ReactionNoCountmodifier) so no blank space remains where the numeral used to sit; chips with plural counts are pixel-identical to before.Purely cosmetic, and off by default.
Tested on the desktop app, Ubuntu 24.04.
Type of change
Checklist:
.changesetAI disclosure:
I designed and directed the feature and tested it in the GUI; the code itself was AI-generated.
Conditionally unmounts the count
<Text>when there is exactly one reaction (depending on the settinghideSingleReactionCount).Reaction.css.tsadds the padding modifier declared after the base style. The setting follows the standard boolean pattern insettings.ts, gets aSettingTogglein the Messages section ofGeneral.tsx, and is registered insettingsLink.tsfocus-ID map. Tests cover both default states and the enabled state asserting the modifier class lands on the chip.