From 891559b3d9ade1962a6362c581632eb920935e16 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 23 Dec 2022 21:14:45 +0400 Subject: [PATCH] Reverse message ranges for export. --- Telegram/SourceFiles/export/export_api_wrap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/export/export_api_wrap.cpp b/Telegram/SourceFiles/export/export_api_wrap.cpp index 41112b086..65fe0d873 100644 --- a/Telegram/SourceFiles/export/export_api_wrap.cpp +++ b/Telegram/SourceFiles/export/export_api_wrap.cpp @@ -490,8 +490,8 @@ void ApiWrap::requestSplitRanges() { _splits.push_back(MTP_messageRange( MTP_int(1), MTP_int(std::numeric_limits::max()))); - //} else { - // ranges::reverse(_splits); + } else { + ranges::reverse(_splits); } _startProcess->splitIndex = useOnlyLastSplit() ? (_splits.size() - 1)