mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-04 00:15:42 +00:00
Fix build with Xcode.
This commit is contained in:
@@ -77,7 +77,7 @@ private:
|
|||||||
ChatAdminRights rights,
|
ChatAdminRights rights,
|
||||||
std::vector<std::pair<Flag, tr::phrase<>>> phrases) {
|
std::vector<std::pair<Flag, tr::phrase<>>> phrases) {
|
||||||
auto list = QStringList();
|
auto list = QStringList();
|
||||||
for (const auto [flag, phrase] : phrases) {
|
for (const auto &[flag, phrase] : phrases) {
|
||||||
if (rights & flag) {
|
if (rights & flag) {
|
||||||
list.push_back(phrase(tr::now));
|
list.push_back(phrase(tr::now));
|
||||||
}
|
}
|
||||||
|
@@ -470,7 +470,6 @@ void SendFilesBox::refreshAllAfterChanges(int fromItem, Fn<void()> perform) {
|
|||||||
void SendFilesBox::openDialogToAddFileToAlbum() {
|
void SendFilesBox::openDialogToAddFileToAlbum() {
|
||||||
const auto toastParent = Ui::BoxShow(this).toastParent();
|
const auto toastParent = Ui::BoxShow(this).toastParent();
|
||||||
const auto checkResult = [=](const Ui::PreparedList &list) {
|
const auto checkResult = [=](const Ui::PreparedList &list) {
|
||||||
if (_check)
|
|
||||||
if (!(_limits & SendFilesAllow::OnlyOne)) {
|
if (!(_limits & SendFilesAllow::OnlyOne)) {
|
||||||
return true;
|
return true;
|
||||||
} else if (!_list.canBeSentInSlowmodeWith(list)) {
|
} else if (!_list.canBeSentInSlowmodeWith(list)) {
|
||||||
|
@@ -10,6 +10,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||||||
#include "apiwrap.h" // ApiWrap::updateStickers()
|
#include "apiwrap.h" // ApiWrap::updateStickers()
|
||||||
#include "core/application.h"
|
#include "core/application.h"
|
||||||
#include "data/data_chat_participant_status.h" // Data::CanSendAnyOf.
|
#include "data/data_chat_participant_status.h" // Data::CanSendAnyOf.
|
||||||
|
#include "data/data_forum_topic.h"
|
||||||
#include "data/data_session.h"
|
#include "data/data_session.h"
|
||||||
#include "data/stickers/data_stickers.h" // Stickers::setsRef()
|
#include "data/stickers/data_stickers.h" // Stickers::setsRef()
|
||||||
#include "main/main_domain.h"
|
#include "main/main_domain.h"
|
||||||
|
Reference in New Issue
Block a user