diff --git a/Telegram/SourceFiles/boxes/report_messages_box.cpp b/Telegram/SourceFiles/boxes/report_messages_box.cpp index e09825926..25e548f1b 100644 --- a/Telegram/SourceFiles/boxes/report_messages_box.cpp +++ b/Telegram/SourceFiles/boxes/report_messages_box.cpp @@ -79,7 +79,6 @@ void ShowReportMessageBox( auto performRequest = [=]( const auto &repeatRequest, Data::ReportInput reportInput) -> void { - constexpr auto kToastDuration = crl::time(4000); report(reportInput, [=](const Api::ReportResult &result) { if (!result.error.isEmpty()) { if (result.error == u"MESSAGE_ID_REQUIRED"_q) { @@ -199,6 +198,7 @@ void ShowReportMessageBox( } })); } else if (result.successful) { + constexpr auto kToastDuration = crl::time(4000); show->showToast( tr::lng_report_thanks(tr::now), kToastDuration); diff --git a/Telegram/SourceFiles/history/history_view_swipe.cpp b/Telegram/SourceFiles/history/history_view_swipe.cpp index 214310fea..cbe9d65a1 100644 --- a/Telegram/SourceFiles/history/history_view_swipe.cpp +++ b/Telegram/SourceFiles/history/history_view_swipe.cpp @@ -198,7 +198,8 @@ void SetupSwipeHandler( const auto &touches = t->touchPoints(); const auto released = [&](int index) { return (touches.size() > index) - && (touches.at(index).state() & Qt::TouchPointReleased); + && (int(touches.at(index).state()) + & int(Qt::TouchPointReleased)); }; const auto cancel = released(0) || released(1) diff --git a/Telegram/SourceFiles/ui/controls/who_reacted_context_action.cpp b/Telegram/SourceFiles/ui/controls/who_reacted_context_action.cpp index a2f8f7229..7fde2d3fe 100644 --- a/Telegram/SourceFiles/ui/controls/who_reacted_context_action.cpp +++ b/Telegram/SourceFiles/ui/controls/who_reacted_context_action.cpp @@ -13,6 +13,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "ui/effects/ripple_animation.h" #include "ui/chat/group_call_userpics.h" #include "ui/text/text_custom_emoji.h" +#include "ui/emoji_config.h" #include "ui/painter.h" #include "ui/ui_utility.h" #include "lang/lang_keys.h" diff --git a/Telegram/SourceFiles/ui/controls/who_reacted_context_action.h b/Telegram/SourceFiles/ui/controls/who_reacted_context_action.h index f0b2545f5..60110d654 100644 --- a/Telegram/SourceFiles/ui/controls/who_reacted_context_action.h +++ b/Telegram/SourceFiles/ui/controls/who_reacted_context_action.h @@ -8,8 +8,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #pragma once #include "base/unique_qptr.h" -#include "ui/text/text_block.h" #include "ui/widgets/menu/menu_item_base.h" +#include "ui/text/text_custom_emoji.h" namespace Ui {