Complete report action callback
This commit is contained in:
parent
504f5ee5d7
commit
c7c145b226
|
@ -25,6 +25,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
#include "ui/toast/toast.h"
|
#include "ui/toast/toast.h"
|
||||||
#include "ui/text/text_utilities.h" // Ui::Text::ToUpper
|
#include "ui/text/text_utilities.h" // Ui::Text::ToUpper
|
||||||
#include "history/history_location_manager.h" // LocationClickHandler.
|
#include "history/history_location_manager.h" // LocationClickHandler.
|
||||||
|
#include "history/view/history_view_context_menu.h"
|
||||||
#include "boxes/abstract_box.h"
|
#include "boxes/abstract_box.h"
|
||||||
#include "boxes/confirm_box.h"
|
#include "boxes/confirm_box.h"
|
||||||
#include "boxes/peer_list_box.h"
|
#include "boxes/peer_list_box.h"
|
||||||
|
@ -555,8 +556,9 @@ void ActionsFiller::addBotCommandActions(not_null<UserData*> user) {
|
||||||
|
|
||||||
void ActionsFiller::addReportAction() {
|
void ActionsFiller::addReportAction() {
|
||||||
const auto peer = _peer;
|
const auto peer = _peer;
|
||||||
|
const auto controller = _controller->parentController();
|
||||||
const auto report = [=] {
|
const auto report = [=] {
|
||||||
|
HistoryView::ShowReportPeerBox(controller, peer);
|
||||||
};
|
};
|
||||||
AddActionButton(
|
AddActionButton(
|
||||||
_wrap,
|
_wrap,
|
||||||
|
|
Loading…
Reference in New Issue