mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-08-25 18:19:49 +00:00
fix reactions
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user