diff --git a/Telegram/SourceFiles/boxes/peers/choose_peer_box.cpp b/Telegram/SourceFiles/boxes/peers/choose_peer_box.cpp index 02de9b5e4..063e3f4c7 100644 --- a/Telegram/SourceFiles/boxes/peers/choose_peer_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/choose_peer_box.cpp @@ -77,7 +77,7 @@ private: ChatAdminRights rights, std::vector>> phrases) { auto list = QStringList(); - for (const auto [flag, phrase] : phrases) { + for (const auto &[flag, phrase] : phrases) { if (rights & flag) { list.push_back(phrase(tr::now)); } diff --git a/Telegram/SourceFiles/boxes/send_files_box.cpp b/Telegram/SourceFiles/boxes/send_files_box.cpp index df1526780..ab4672334 100644 --- a/Telegram/SourceFiles/boxes/send_files_box.cpp +++ b/Telegram/SourceFiles/boxes/send_files_box.cpp @@ -470,7 +470,6 @@ void SendFilesBox::refreshAllAfterChanges(int fromItem, Fn perform) { void SendFilesBox::openDialogToAddFileToAlbum() { const auto toastParent = Ui::BoxShow(this).toastParent(); const auto checkResult = [=](const Ui::PreparedList &list) { - if (_check) if (!(_limits & SendFilesAllow::OnlyOne)) { return true; } else if (!_list.canBeSentInSlowmodeWith(list)) { diff --git a/Telegram/SourceFiles/platform/mac/touchbar/mac_touchbar_manager.mm b/Telegram/SourceFiles/platform/mac/touchbar/mac_touchbar_manager.mm index 555e98b32..f9c24a5a5 100644 --- a/Telegram/SourceFiles/platform/mac/touchbar/mac_touchbar_manager.mm +++ b/Telegram/SourceFiles/platform/mac/touchbar/mac_touchbar_manager.mm @@ -10,6 +10,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "apiwrap.h" // ApiWrap::updateStickers() #include "core/application.h" #include "data/data_chat_participant_status.h" // Data::CanSendAnyOf. +#include "data/data_forum_topic.h" #include "data/data_session.h" #include "data/stickers/data_stickers.h" // Stickers::setsRef() #include "main/main_domain.h"