2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Show bar waves from any member-s level.

This commit is contained in:
John Preston
2020-12-09 13:08:36 +04:00
parent 468597f54d
commit e523687328
4 changed files with 22 additions and 13 deletions

View File

@@ -3981,6 +3981,7 @@ void ApiWrap::forwardMessages(
++shared->requestsLeft;
}
const auto requestType = Data::Histories::RequestType::Send;
const auto idsCopy = localIds;
histories.sendRequest(history, requestType, [=](Fn<void()> finish) {
history->sendRequestId = request(MTPmessages_ForwardMessages(
MTP_flags(sendFlags),
@@ -3995,9 +3996,9 @@ void ApiWrap::forwardMessages(
shared->callback();
}
finish();
}).fail([=, ids = localIds](const RPCError &error) {
if (ids) {
for (const auto &[randomId, itemId] : *ids) {
}).fail([=](const RPCError &error) {
if (idsCopy) {
for (const auto &[randomId, itemId] : *idsCopy) {
sendMessageFail(error, peer, randomId, itemId);
}
} else {