mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-23 01:27:15 +02:00
Explicitly specify QVector element type to fix build with clang13+rangev3+qt6
More info: https://github.com/telegramdesktop/tdesktop/issues/24385 https://github.com/telegramdesktop/tdesktop/issues/24014 https://github.com/ericniebler/range-v3/issues/1691
This commit is contained in:
parent
a8426bd6da
commit
2b383a4236
2 changed files with 3 additions and 3 deletions
|
@ -83,7 +83,7 @@ MTPInputMedia PrepareUploadedPhoto(RemoteFileInfo info) {
|
||||||
MTP_flags(flags),
|
MTP_flags(flags),
|
||||||
info.file,
|
info.file,
|
||||||
MTP_vector<MTPInputDocument>(
|
MTP_vector<MTPInputDocument>(
|
||||||
ranges::to<QVector>(info.attachedStickers)),
|
ranges::to<QVector<MTPInputDocument>>(info.attachedStickers)),
|
||||||
MTP_int(0));
|
MTP_int(0));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ MTPInputMedia PrepareUploadedDocument(
|
||||||
MTP_string(document->mimeString()),
|
MTP_string(document->mimeString()),
|
||||||
ComposeSendingDocumentAttributes(document),
|
ComposeSendingDocumentAttributes(document),
|
||||||
MTP_vector<MTPInputDocument>(
|
MTP_vector<MTPInputDocument>(
|
||||||
ranges::to<QVector>(info.attachedStickers)),
|
ranges::to<QVector<MTPInputDocument>>(info.attachedStickers)),
|
||||||
MTP_int(0));
|
MTP_int(0));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -148,7 +148,7 @@ void SaveAllowedReactions(
|
||||||
const std::vector<QString> &allowed) {
|
const std::vector<QString> &allowed) {
|
||||||
auto ids = allowed | ranges::views::transform([=](QString value) {
|
auto ids = allowed | ranges::views::transform([=](QString value) {
|
||||||
return MTP_string(value);
|
return MTP_string(value);
|
||||||
}) | ranges::to<QVector>;
|
}) | ranges::to<QVector<MTPstring>>;
|
||||||
|
|
||||||
peer->session().api().request(MTPmessages_SetChatAvailableReactions(
|
peer->session().api().request(MTPmessages_SetChatAvailableReactions(
|
||||||
peer->input,
|
peer->input,
|
||||||
|
|
Loading…
Add table
Reference in a new issue