mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-03 16:05:57 +00:00
Fix build with Xcode.
This commit is contained in:
@@ -77,7 +77,7 @@ private:
|
||||
ChatAdminRights rights,
|
||||
std::vector<std::pair<Flag, tr::phrase<>>> 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));
|
||||
}
|
||||
|
@@ -470,7 +470,6 @@ void SendFilesBox::refreshAllAfterChanges(int fromItem, Fn<void()> 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)) {
|
||||
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user