fix: channel reaction tooltip shows only a count instead of who reacted (#33393)

Hovering a reaction in a channel stopped naming the people who reacted and only showed a count, such as "2 🚀". It names them again, for example "You and Alice reacted with 🚀". Reactions on comments keep showing just the count, since the app does not list who reacted there.

Fixes #33392
This commit is contained in:
Classic298 2026-10-30 10:38:47 +01:00 • committed by GitHub
parent cf16073a1a
commit ea1c60fbdf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -650,7 +650,7 @@
<div class="flex items-center flex-wrap gap-1 mt-1 mb-1">
{#each message.reactions as reaction}
<Tooltip
content={reaction.count !== undefined
content={reaction.users.length === 0
? `${reaction.count} :${reaction.name}:`
: $i18n.t('{{NAMES}} reacted with {{REACTION}}', {
NAMES: reaction.users