2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

When reporting peer allow to select messages first.

This commit is contained in:
John Preston
2021-02-15 21:37:22 +04:00
parent 45dcadfff4
commit 467449ac13
25 changed files with 639 additions and 372 deletions

View File

@@ -1414,6 +1414,18 @@ void MainWidget::ctrlEnterSubmitUpdated() {
_history->updateFieldSubmitSettings();
}
void MainWidget::showChooseReportMessages(
not_null<PeerData*> peer,
Ui::ReportReason reason,
Fn<void(MessageIdsList)> done) {
_history->setChooseReportMessagesDetails(reason, std::move(done));
ui_showPeerHistory(peer->id, SectionShow(), ShowForChooseMessagesMsgId);
}
void MainWidget::clearChooseReportMessages() {
_history->setChooseReportMessagesDetails({}, nullptr);
}
void MainWidget::ui_showPeerHistory(
PeerId peerId,
const SectionShow &params,