mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix build with Xcode.
This commit is contained in:
parent
554f66f089
commit
ea4e2f0952
3 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue