2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45: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

@@ -47,6 +47,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "window/notifications_manager.h"
#include "boxes/about_sponsored_box.h"
#include "boxes/delete_messages_box.h"
#include "boxes/report_messages_box.h"
#include "boxes/sticker_set_box.h"
#include "chat_helpers/message_field.h"
#include "chat_helpers/emoji_interactions.h"
@@ -3864,13 +3865,13 @@ void HistoryInner::deleteAsGroup(FullMsgId itemId) {
}
void HistoryInner::reportItem(FullMsgId itemId) {
HistoryView::ShowReportItemsBox(_peer, { 1, itemId });
ShowReportItemsBox(_peer, { 1, itemId });
}
void HistoryInner::reportAsGroup(FullMsgId itemId) {
if (const auto item = session().data().message(itemId)) {
const auto group = session().data().groups().find(item);
HistoryView::ShowReportItemsBox(
ShowReportItemsBox(
_peer,
(group
? session().data().itemsToIds(group->items)