mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-19 06:26:55 +00:00
Removed mutable lambdas from window peer menu.
This commit is contained in:
parent
1394b1d56f
commit
bb78c43de5
@ -1144,7 +1144,7 @@ QPointer<Ui::BoxContent> ShowSendNowMessagesBox(
|
|||||||
not_null<Window::SessionNavigation*> navigation,
|
not_null<Window::SessionNavigation*> navigation,
|
||||||
not_null<History*> history,
|
not_null<History*> history,
|
||||||
MessageIdsList &&items,
|
MessageIdsList &&items,
|
||||||
FnMut<void()> &&successCallback) {
|
Fn<void()> &&successCallback) {
|
||||||
const auto session = &navigation->session();
|
const auto session = &navigation->session();
|
||||||
const auto text = (items.size() > 1)
|
const auto text = (items.size() > 1)
|
||||||
? tr::lng_scheduled_send_now_many(tr::now, lt_count, items.size())
|
? tr::lng_scheduled_send_now_many(tr::now, lt_count, items.size())
|
||||||
@ -1164,7 +1164,7 @@ QPointer<Ui::BoxContent> ShowSendNowMessagesBox(
|
|||||||
=,
|
=,
|
||||||
list = std::move(items),
|
list = std::move(items),
|
||||||
callback = std::move(successCallback)
|
callback = std::move(successCallback)
|
||||||
](Fn<void()> &&close) mutable {
|
](Fn<void()> &&close) {
|
||||||
close();
|
close();
|
||||||
auto ids = QVector<MTPint>();
|
auto ids = QVector<MTPint>();
|
||||||
for (const auto item : session->data().idsToItems(list)) {
|
for (const auto item : session->data().idsToItems(list)) {
|
||||||
|
@ -112,7 +112,7 @@ QPointer<Ui::BoxContent> ShowSendNowMessagesBox(
|
|||||||
not_null<Window::SessionNavigation*> navigation,
|
not_null<Window::SessionNavigation*> navigation,
|
||||||
not_null<History*> history,
|
not_null<History*> history,
|
||||||
MessageIdsList &&items,
|
MessageIdsList &&items,
|
||||||
FnMut<void()> &&successCallback = nullptr);
|
Fn<void()> &&successCallback = nullptr);
|
||||||
|
|
||||||
void ToggleMessagePinned(
|
void ToggleMessagePinned(
|
||||||
not_null<Window::SessionNavigation*> navigation,
|
not_null<Window::SessionNavigation*> navigation,
|
||||||
|
Loading…
Reference in New Issue
Block a user