mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 23:27:09 +02:00
Complete report action callback
This commit is contained in:
parent
504f5ee5d7
commit
c7c145b226
1 changed files with 3 additions and 1 deletions
|
@ -25,6 +25,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "ui/toast/toast.h"
|
||||
#include "ui/text/text_utilities.h" // Ui::Text::ToUpper
|
||||
#include "history/history_location_manager.h" // LocationClickHandler.
|
||||
#include "history/view/history_view_context_menu.h"
|
||||
#include "boxes/abstract_box.h"
|
||||
#include "boxes/confirm_box.h"
|
||||
#include "boxes/peer_list_box.h"
|
||||
|
@ -555,8 +556,9 @@ void ActionsFiller::addBotCommandActions(not_null<UserData*> user) {
|
|||
|
||||
void ActionsFiller::addReportAction() {
|
||||
const auto peer = _peer;
|
||||
const auto controller = _controller->parentController();
|
||||
const auto report = [=] {
|
||||
|
||||
HistoryView::ShowReportPeerBox(controller, peer);
|
||||
};
|
||||
AddActionButton(
|
||||
_wrap,
|
||||
|
|
Loading…
Add table
Reference in a new issue