From 022249f2352d7bb6f806b5d55718605b71560afa Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Fri, 24 Dec 2021 15:27:47 +0300 Subject: [PATCH] Fixed build on non-Windows. --- Telegram/SourceFiles/apiwrap.cpp | 2 +- Telegram/SourceFiles/history/view/history_view_react_button.h | 1 - Telegram/SourceFiles/history/view/history_view_reactions.cpp | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/apiwrap.cpp b/Telegram/SourceFiles/apiwrap.cpp index 0bb6038a5..ae5f07c42 100644 --- a/Telegram/SourceFiles/apiwrap.cpp +++ b/Telegram/SourceFiles/apiwrap.cpp @@ -2936,7 +2936,7 @@ void ApiWrap::preloadEnoughUnreadMentions(not_null history) { void ApiWrap::checkForUnreadMentions( const base::flat_set &possiblyReadMentions, ChannelData *channel) { - for (const auto msgId : possiblyReadMentions) { + for (const auto &msgId : possiblyReadMentions) { requestMessageData(channel, msgId, [=] { const auto item = channel ? _session->data().message(channel->id, msgId) diff --git a/Telegram/SourceFiles/history/view/history_view_react_button.h b/Telegram/SourceFiles/history/view/history_view_react_button.h index 367ae9067..4d6232136 100644 --- a/Telegram/SourceFiles/history/view/history_view_react_button.h +++ b/Telegram/SourceFiles/history/view/history_view_react_button.h @@ -76,7 +76,6 @@ private: Ui::Animations::Simple _scaleAnimation; QRect _geometry; - ButtonStyle _style = ButtonStyle::Bubble; bool _outbg = false; }; diff --git a/Telegram/SourceFiles/history/view/history_view_reactions.cpp b/Telegram/SourceFiles/history/view/history_view_reactions.cpp index 059954855..500d7470f 100644 --- a/Telegram/SourceFiles/history/view/history_view_reactions.cpp +++ b/Telegram/SourceFiles/history/view/history_view_reactions.cpp @@ -60,7 +60,6 @@ void InlineList::layoutButtons() { _buttons.clear(); return; } - _data.chosenReaction; auto sorted = ranges::view::all( _data.reactions ) | ranges::view::transform([](const auto &pair) {