mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 06:55:58 +00:00
Removed mutable lambdas from window peer menu.
This commit is contained in:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user