mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix build on VS 17.12 Preview 4 on ARM.
This commit is contained in:
parent
02c01e258c
commit
1eeb46d5fc
4 changed files with 5 additions and 3 deletions
|
@ -79,7 +79,6 @@ void ShowReportMessageBox(
|
||||||
auto performRequest = [=](
|
auto performRequest = [=](
|
||||||
const auto &repeatRequest,
|
const auto &repeatRequest,
|
||||||
Data::ReportInput reportInput) -> void {
|
Data::ReportInput reportInput) -> void {
|
||||||
constexpr auto kToastDuration = crl::time(4000);
|
|
||||||
report(reportInput, [=](const Api::ReportResult &result) {
|
report(reportInput, [=](const Api::ReportResult &result) {
|
||||||
if (!result.error.isEmpty()) {
|
if (!result.error.isEmpty()) {
|
||||||
if (result.error == u"MESSAGE_ID_REQUIRED"_q) {
|
if (result.error == u"MESSAGE_ID_REQUIRED"_q) {
|
||||||
|
@ -199,6 +198,7 @@ void ShowReportMessageBox(
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
} else if (result.successful) {
|
} else if (result.successful) {
|
||||||
|
constexpr auto kToastDuration = crl::time(4000);
|
||||||
show->showToast(
|
show->showToast(
|
||||||
tr::lng_report_thanks(tr::now),
|
tr::lng_report_thanks(tr::now),
|
||||||
kToastDuration);
|
kToastDuration);
|
||||||
|
|
|
@ -198,7 +198,8 @@ void SetupSwipeHandler(
|
||||||
const auto &touches = t->touchPoints();
|
const auto &touches = t->touchPoints();
|
||||||
const auto released = [&](int index) {
|
const auto released = [&](int index) {
|
||||||
return (touches.size() > index)
|
return (touches.size() > index)
|
||||||
&& (touches.at(index).state() & Qt::TouchPointReleased);
|
&& (int(touches.at(index).state())
|
||||||
|
& int(Qt::TouchPointReleased));
|
||||||
};
|
};
|
||||||
const auto cancel = released(0)
|
const auto cancel = released(0)
|
||||||
|| released(1)
|
|| released(1)
|
||||||
|
|
|
@ -13,6 +13,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
#include "ui/effects/ripple_animation.h"
|
#include "ui/effects/ripple_animation.h"
|
||||||
#include "ui/chat/group_call_userpics.h"
|
#include "ui/chat/group_call_userpics.h"
|
||||||
#include "ui/text/text_custom_emoji.h"
|
#include "ui/text/text_custom_emoji.h"
|
||||||
|
#include "ui/emoji_config.h"
|
||||||
#include "ui/painter.h"
|
#include "ui/painter.h"
|
||||||
#include "ui/ui_utility.h"
|
#include "ui/ui_utility.h"
|
||||||
#include "lang/lang_keys.h"
|
#include "lang/lang_keys.h"
|
||||||
|
|
|
@ -8,8 +8,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "base/unique_qptr.h"
|
#include "base/unique_qptr.h"
|
||||||
#include "ui/text/text_block.h"
|
|
||||||
#include "ui/widgets/menu/menu_item_base.h"
|
#include "ui/widgets/menu/menu_item_base.h"
|
||||||
|
#include "ui/text/text_custom_emoji.h"
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue