aboutsummaryrefslogtreecommitdiff
path: root/net-im/telegram-desktop/files/patch-Telegram_SourceFiles_boxes_filters_edit_filter_links_cpp
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/telegram-desktop/files/patch-Telegram_SourceFiles_boxes_filters_edit_filter_links_cpp')
-rw-r--r--net-im/telegram-desktop/files/patch-Telegram_SourceFiles_boxes_filters_edit_filter_links_cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/net-im/telegram-desktop/files/patch-Telegram_SourceFiles_boxes_filters_edit_filter_links_cpp b/net-im/telegram-desktop/files/patch-Telegram_SourceFiles_boxes_filters_edit_filter_links_cpp
new file mode 100644
index 000000000000..f9cf3585a624
--- /dev/null
+++ b/net-im/telegram-desktop/files/patch-Telegram_SourceFiles_boxes_filters_edit_filter_links_cpp
@@ -0,0 +1,23 @@
+unbreak clang 13 build
+
+Index: Telegram/SourceFiles/boxes/filters/edit_filter_links.cpp
+--- Telegram/SourceFiles/boxes/filters/edit_filter_links.cpp.orig
++++ Telegram/SourceFiles/boxes/filters/edit_filter_links.cpp
+@@ -1028,7 +1028,7 @@ void ExportFilterLink(
+ const auto session = &front->session();
+ auto mtpPeers = peers | ranges::views::transform(
+ [](not_null<PeerData*> peer) { return MTPInputPeer(peer->input); }
+- ) | ranges::to<QVector>();
++ ) | ranges::to<QVector<MTPInputPeer>>();
+ session->api().request(MTPchatlists_ExportChatlistInvite(
+ MTP_inputChatlistDialogFilter(MTP_int(id)),
+ MTP_string(), // title
+@@ -1061,7 +1061,7 @@ void EditLinkChats(
+ const auto session = &front->session();
+ auto mtpPeers = peers | ranges::views::transform(
+ [](not_null<PeerData*> peer) { return MTPInputPeer(peer->input); }
+- ) | ranges::to<QVector>();
++ ) | ranges::to<QVector<MTPInputPeer>>();
+ session->api().request(MTPchatlists_EditExportedInvite(
+ MTP_flags(MTPchatlists_EditExportedInvite::Flag::f_peers),
+ MTP_inputChatlistDialogFilter(MTP_int(link.id)),