Complete report action callback

This commit is contained in:
Sprite 2021-03-11 17:23:38 +08:00 committed by John Preston
parent 504f5ee5d7
commit c7c145b226
1 changed files with 3 additions and 1 deletions

View File

@ -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,