2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

Added api support for stories reports with server options.

This commit is contained in:
23rd
2024-10-05 18:48:23 +03:00
parent ede771e51b
commit e565acba91
10 changed files with 77 additions and 41 deletions

View File

@@ -8,7 +8,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "data/data_stories.h"
#include "base/unixtime.h"
#include "boxes/report_messages_box.h"
#include "apiwrap.h"
#include "core/application.h"
#include "data/data_changes.h"
@@ -1905,17 +1904,6 @@ void Stories::togglePinnedList(
}
void Stories::report(
std::shared_ptr<Ui::Show> show,
FullStoryId id,
Ui::ReportReason reason,
QString text) {
if (const auto maybeStory = lookup(id)) {
const auto story = *maybeStory;
ShowReportMessageBox(show, story->peer(), {}, { story->id() });
}
}
bool Stories::isQuitPrevent() {
if (!_markReadPending.empty()) {
sendMarkAsReadRequests();