fix reactions

This commit is contained in:
Evgeny @ SimpleX Chat
2026-05-31 13:54:23 +00:00
parent 037e42fc33
commit 1d44abe07c
+7 -5
View File
@@ -608,9 +608,15 @@ function renderMessages(container, messages, membersMap, channel) {
row.appendChild(spacer);
}
const col = document.createElement('div');
const bubble = renderBubble(msg, member, showTail);
row.appendChild(bubble);
col.appendChild(bubble);
if (msg.reactions && msg.reactions.length > 0) {
col.appendChild(renderReactions(msg.reactions));
}
row.appendChild(col);
container.appendChild(row);
prevMsg = msg;
}
@@ -667,10 +673,6 @@ function renderBubble(msg, member, showTail) {
break;
}
if (msg.reactions && msg.reactions.length > 0) {
inner.appendChild(renderReactions(msg.reactions));
}
bubble.appendChild(inner);
if (mediaOnly) {