From bb971b057526c77af47181e2c956cb415c4e4bbc Mon Sep 17 00:00:00 2001 From: Loren Burkholder Date: Mon, 24 Jul 2023 19:07:45 -0400 Subject: Add report message functionality --- src/timeline/TimelineModel.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/timeline/TimelineModel.cpp') diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp index e8a0a507..aefdc860 100644 --- a/src/timeline/TimelineModel.cpp +++ b/src/timeline/TimelineModel.cpp @@ -1607,6 +1607,14 @@ TimelineModel::redactAllFromUser(const QString &userid, const QString &reason) std::this_thread::sleep_for(std::chrono::milliseconds(50)); } } + +void +TimelineModel::reportEvent(const QString &eventId, const QString &reason, const int score) +{ + http::client()->report_event( + room_id_.toStdString(), eventId.toStdString(), reason.toStdString(), score); +} + void TimelineModel::redactEvent(const QString &id, const QString &reason) { -- cgit 1.5.1