Skip to content

Commit

Permalink
Fixed reactions with webkit
Browse files Browse the repository at this point in the history
  • Loading branch information
Ri0n committed Oct 8, 2024
1 parent c86b138 commit 9f94e0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion themes/chatview/psi/bubble/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,9 @@
groupped[base].text += `<em>${event["reactions"][r].text}</em>`;
}

for (const [base, value] of Object.entries(groupped)) {
//for (const [base, value] of Object.entries(groupped)) {
for (const base in groupped) {
const value = groupped[base];
const nicks = value.nicks.sort().filter((x, i, a) => !i || x != a[i-1]);
const reaction = document.createElement("span");
reaction.innerHTML = `${nicks.length} ${value.text}`;
Expand Down

0 comments on commit 9f94e0b

Please sign in to comment.