2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Removed mutable lambdas from window peer menu.

This commit is contained in:
23rd
2022-02-27 11:28:16 +03:00
parent 1394b1d56f
commit bb78c43de5
2 changed files with 3 additions and 3 deletions

View File

@@ -1144,7 +1144,7 @@ QPointer<Ui::BoxContent> ShowSendNowMessagesBox(
not_null<Window::SessionNavigation*> navigation,
not_null<History*> history,
MessageIdsList &&items,
FnMut<void()> &&successCallback) {
Fn<void()> &&successCallback) {
const auto session = &navigation->session();
const auto text = (items.size() > 1)
? tr::lng_scheduled_send_now_many(tr::now, lt_count, items.size())
@@ -1164,7 +1164,7 @@ QPointer<Ui::BoxContent> ShowSendNowMessagesBox(
=,
list = std::move(items),
callback = std::move(successCallback)
](Fn<void()> &&close) mutable {
](Fn<void()> &&close) {
close();
auto ids = QVector<MTPint>();
for (const auto item : session->data().idsToItems(list)) {