Fix rendering messages with multiple emotes

thrimbletrimmer-solid
ElementalAlchemist 2 days ago
parent f9b363fce8
commit cafc2c475c

@ -378,7 +378,7 @@ const MessageText: Component<MessageTextProps> = (props) => {
emoteData.start - messageTextStart, emoteData.start - messageTextStart,
emoteData.end + 1 - messageTextStart, emoteData.end + 1 - messageTextStart,
); );
chatMessageText = chatMessageText.substring(emoteData.end + 1); chatMessageText = chatMessageText.substring(emoteData.end + 1 - messageTextStart);
messageTextStart = emoteData.end + 1; messageTextStart = emoteData.end + 1;
messageParts.push( messageParts.push(
<img <img

Loading…
Cancel
Save