diff --git a/Telegram/SourceFiles/api/api_chat_filters.cpp b/Telegram/SourceFiles/api/api_chat_filters.cpp index aed167392..5bd4144c4 100644 --- a/Telegram/SourceFiles/api/api_chat_filters.cpp +++ b/Telegram/SourceFiles/api/api_chat_filters.cpp @@ -227,7 +227,7 @@ void ImportInvite( }; auto inputs = peers | ranges::views::transform([](auto peer) { return MTPInputPeer(peer->input); - }) | ranges::to(); + }) | ranges::to>(); if (!slug.isEmpty()) { api->request(MTPchatlists_JoinChatlistInvite( MTP_string(slug), diff --git a/Telegram/SourceFiles/boxes/filters/edit_filter_links.cpp b/Telegram/SourceFiles/boxes/filters/edit_filter_links.cpp index 161093867..c9ad2bcbe 100644 --- a/Telegram/SourceFiles/boxes/filters/edit_filter_links.cpp +++ b/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 peer) { return MTPInputPeer(peer->input); } - ) | ranges::to(); + ) | ranges::to>(); 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 peer) { return MTPInputPeer(peer->input); } - ) | ranges::to(); + ) | ranges::to>(); session->api().request(MTPchatlists_EditExportedInvite( MTP_flags(MTPchatlists_EditExportedInvite::Flag::f_peers), MTP_inputChatlistDialogFilter(MTP_int(link.id)), diff --git a/Telegram/SourceFiles/settings/settings_folders.cpp b/Telegram/SourceFiles/settings/settings_folders.cpp index 5511e62c6..9b1087ac3 100644 --- a/Telegram/SourceFiles/settings/settings_folders.cpp +++ b/Telegram/SourceFiles/settings/settings_folders.cpp @@ -696,7 +696,7 @@ void FilterRowButton::paintEvent(QPaintEvent *e) { row.removePeers ) | ranges::views::transform([](not_null peer) { return MTPInputPeer(peer->input); - }) | ranges::to(); + }) | ranges::to>(); removeChatlistRequests.push_back( MTPchatlists_LeaveChatlist( MTP_inputChatlistDialogFilter(MTP_int(newId)), diff --git a/Telegram/SourceFiles/window/window_filters_menu.cpp b/Telegram/SourceFiles/window/window_filters_menu.cpp index 251742be7..657e0165d 100644 --- a/Telegram/SourceFiles/window/window_filters_menu.cpp +++ b/Telegram/SourceFiles/window/window_filters_menu.cpp @@ -494,7 +494,7 @@ void FiltersMenu::remove( leave ) | ranges::views::transform([](not_null peer) { return MTPInputPeer(peer->input); - }) | ranges::to()) + }) | ranges::to>()) )).done([=](const MTPUpdates &result) { api->applyUpdates(result); }).send();