feat: Improve XEP-0377 support with report-origin and third-party elements
Add support for <report-origin/> and <third-party/>. When a server forwards a report to an administrator, the original reporter (report-origin) and the offender (third-party) are preserved even if the 'from' address is modified during forwarding. Also display this information in case we receive a report.
This commit is contained in:
@@ -96,6 +96,8 @@
|
||||
#define STANZA_NAME_USERNAME "username"
|
||||
#define STANZA_NAME_PROPOSE "propose"
|
||||
#define STANZA_NAME_REPORT "report"
|
||||
#define STANZA_NAME_REPORT_ORIGIN "report-origin"
|
||||
#define STANZA_NAME_THIRD_PARTY "third-party"
|
||||
#define STANZA_NAME_EVENT "event"
|
||||
#define STANZA_NAME_MOOD "mood"
|
||||
#define STANZA_NAME_RECEIVED "received"
|
||||
|
||||
Reference in New Issue
Block a user