Submitting abuse reports to moderators (#6213)

This patch is part of MSC3215. It implements `feature_report_to_moderator`
    to let end-users send report to room moderators instead of homeserver
    administrators.

    This only works if the room has been setup for moderation, something that
    does not have a UX yet.

    Signed-off-by: David Teller <davidt@element.io>
This commit is contained in:
David Teller 2021-06-18 18:09:02 +02:00 committed by GitHub
parent bc74a7366b
commit 77a4d345bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 468 additions and 151 deletions

View file

@ -131,6 +131,13 @@ export interface ISetting {
}
export const SETTINGS: {[setting: string]: ISetting} = {
"feature_report_to_moderators": {
isFeature: true,
displayName: _td("Report to moderators prototype. " +
"In rooms that support moderation, the `report` button will let you report abuse to room moderators"),
supportedLevels: LEVELS_FEATURE,
default: false,
},
"feature_spaces": {
isFeature: true,
displayName: _td("Spaces prototype. Incompatible with Communities, Communities v2 and Custom Tags. " +