diff --git a/Telegram/SourceFiles/history.cpp b/Telegram/SourceFiles/history.cpp index c6ed5db2d..2095207dd 100644 --- a/Telegram/SourceFiles/history.cpp +++ b/Telegram/SourceFiles/history.cpp @@ -8145,7 +8145,13 @@ bool HistoryService::prepareGameScoreText(const QString &from, QString *outText, second = MakeShared(item, i, j); auto parts = strData.split(','); t_assert(parts.size() > 2); - return textcmdLink(2, parts.mid(2).join(',')); + QString gameTitle; + gameTitle.reserve(strData.size() - 2); + gameTitle.append(parts[2]); + for (int i = 3, count = parts.size(); i != count; ++i) { + gameTitle.append(',').append(parts[i]); + } + return textcmdLink(2, gameTitle); } } } diff --git a/Telegram/SourceFiles/stickers/emoji_pan.cpp b/Telegram/SourceFiles/stickers/emoji_pan.cpp index 168f7be59..a6060ffda 100644 --- a/Telegram/SourceFiles/stickers/emoji_pan.cpp +++ b/Telegram/SourceFiles/stickers/emoji_pan.cpp @@ -2158,7 +2158,7 @@ void StickerPanInner::updateSelected() { } for (int c = 0, l = sets.size(); c < l; ++c) { auto &set = sets[c]; - bool special = featured ? false : (set.flags & MTPDstickerSet::Flag::f_official); + bool special = featured ? false : bool(set.flags & MTPDstickerSet::Flag::f_official); y = ytill; if (featured) {