mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-05 11:24:21 +00:00
Use split ranges to export all messages.
This commit is contained in:
@@ -465,7 +465,9 @@ void Controller::exportNextDialog() {
|
||||
return false;
|
||||
}
|
||||
_messagesWritten = 0;
|
||||
_messagesCount = info.messagesCount;
|
||||
_messagesCount = ranges::accumulate(
|
||||
info.messagesCountPerSplit,
|
||||
0);
|
||||
setState(stateDialogs(DownloadProgress()));
|
||||
return true;
|
||||
}, [=](DownloadProgress progress) {
|
||||
@@ -509,7 +511,9 @@ void Controller::exportNextLeftChannel() {
|
||||
return false;
|
||||
}
|
||||
_messagesWritten = 0;
|
||||
_messagesCount = info.messagesCount;
|
||||
_messagesCount = ranges::accumulate(
|
||||
info.messagesCountPerSplit,
|
||||
0);
|
||||
setState(stateLeftChannels(DownloadProgress()));
|
||||
return true;
|
||||
}, [=](DownloadProgress progress) {
|
||||
|
||||
Reference in New Issue
Block a user