libQuotient
A Qt library for building matrix clients
Loading...
Searching...
No Matches
report_content.h
Go to the documentation of this file.
1// THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
2
3#pragma once
4
5#include <Quotient/jobs/basejob.h>
6
7namespace Quotient {
8
9//! \brief Report an event in a joined room as inappropriate.
10//!
11//! Reports an event as inappropriate to the server, which may then notify
12//! the appropriate people. The caller must be joined to the room to report
13//! it.
14//!
15//! It might be possible for clients to deduce whether an event exists by
16//! timing the response, as only a report for an event that does exist
17//! will require the homeserver to check whether a user is joined to
18//! the room. To combat this, homeserver implementations should add
19//! a random delay when generating a response.
21public:
22 //! \param roomId
23 //! The room in which the event being reported is located.
24 //!
25 //! \param eventId
26 //! The event to report.
27 //!
28 //! \param score
29 //! The score to rate this content as where -100 is most offensive
30 //! and 0 is inoffensive.
31 //!
32 //! \param reason
33 //! The reason the content is being reported. May be blank.
35 std::optional<int> score = std::nullopt, const QString& reason = {});
36};
37
38} // namespace Quotient
Report an event in a joined room as inappropriate.
#define QUOTIENT_API