From bdfa08070103f76b9526c603a2fd6a9a9128aeb1 Mon Sep 17 00:00:00 2001 From: John Preston Date: Sat, 18 Jan 2020 17:39:00 +0300 Subject: [PATCH] Fix build for Windows. --- Telegram/SourceFiles/chat_helpers/message_field.cpp | 2 +- Telegram/SourceFiles/core/shortcuts.cpp | 2 +- Telegram/SourceFiles/core/shortcuts.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/chat_helpers/message_field.cpp b/Telegram/SourceFiles/chat_helpers/message_field.cpp index ef5bacc8c..1b2d53083 100644 --- a/Telegram/SourceFiles/chat_helpers/message_field.cpp +++ b/Telegram/SourceFiles/chat_helpers/message_field.cpp @@ -730,7 +730,7 @@ void SetupSendMenuAndShortcuts( return true; })) || - (request->check(Command::SendMessage) && request->handle([=] { + (request->check(Command::JustSendMessage) && request->handle([=] { const auto post = [&](QEvent::Type type) { QApplication::postEvent( button, diff --git a/Telegram/SourceFiles/core/shortcuts.cpp b/Telegram/SourceFiles/core/shortcuts.cpp index d6e3bf36d..8437e0aa0 100644 --- a/Telegram/SourceFiles/core/shortcuts.cpp +++ b/Telegram/SourceFiles/core/shortcuts.cpp @@ -78,7 +78,7 @@ const auto CommandByName = base::flat_map{ { qsl("show_archive") , Command::ShowArchive }, // Shortcuts that have no default values. - { qsl("message") , Command::SendMessage }, + { qsl("message") , Command::JustSendMessage }, { qsl("message_silently") , Command::SendSilentMessage }, { qsl("message_scheduled"), Command::ScheduleMessage }, // diff --git a/Telegram/SourceFiles/core/shortcuts.h b/Telegram/SourceFiles/core/shortcuts.h index 2a9e42bb8..49e8c0d28 100644 --- a/Telegram/SourceFiles/core/shortcuts.h +++ b/Telegram/SourceFiles/core/shortcuts.h @@ -37,7 +37,7 @@ enum class Command { ShowArchive, - SendMessage, + JustSendMessage, SendSilentMessage, ScheduleMessage,