2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Moved boxes for reporting messages or peers to separated file.

This commit is contained in:
23rd
2022-04-17 13:30:08 +03:00
committed by John Preston
parent 6dce8dfa20
commit e3ac84a849
8 changed files with 109 additions and 66 deletions

View File

@@ -33,6 +33,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "boxes/add_contact_box.h"
#include "boxes/peers/add_bot_to_chat_box.h"
#include "boxes/peers/edit_contact_box.h"
#include "boxes/report_messages_box.h"
#include "lang/lang_keys.h"
#include "menu/menu_mute.h"
#include "info/info_controller.h"
@@ -619,7 +620,7 @@ void ActionsFiller::addReportAction() {
const auto peer = _peer;
const auto controller = _controller->parentController();
const auto report = [=] {
HistoryView::ShowReportPeerBox(controller, peer);
ShowReportPeerBox(controller, peer);
};
AddActionButton(
_wrap,