From cac2786c58da002d1838b6fdaf355d5e5c3c36e8 Mon Sep 17 00:00:00 2001 From: fourtf Date: Thu, 17 Aug 2017 22:46:16 +0200 Subject: [PATCH] fixed emotes after emojis not showing --- src/twitch/twitchmessagebuilder.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/twitch/twitchmessagebuilder.cpp b/src/twitch/twitchmessagebuilder.cpp index dcbbbb6c3..22b0a656d 100644 --- a/src/twitch/twitchmessagebuilder.cpp +++ b/src/twitch/twitchmessagebuilder.cpp @@ -231,7 +231,15 @@ SharedMessage TwitchMessageBuilder::parse() } } - i += split.length() + 1; + for (int j = 0; j < split.size(); j++) { + i++; + + if (split.at(j).isHighSurrogate()) { + j++; + } + } + + i++; } // TODO: Implement this xD