From ba6d9d0c23c319cf4ce6addc2d9923c5802f813e Mon Sep 17 00:00:00 2001 From: Ajay Bura Date: Thu, 13 Jan 2022 15:45:27 +0530 Subject: [PATCH] Add option to change reaction permission Signed-off-by: Ajay Bura --- src/app/molecules/room-permissions/RoomPermissions.jsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/app/molecules/room-permissions/RoomPermissions.jsx b/src/app/molecules/room-permissions/RoomPermissions.jsx index d1a652c9..c7a2eeee 100644 --- a/src/app/molecules/room-permissions/RoomPermissions.jsx +++ b/src/app/molecules/room-permissions/RoomPermissions.jsx @@ -28,6 +28,12 @@ const permissionsInfo = { description: 'Set minimum power level to send messages in room.', default: 0, }, + 'm.reaction': { + parent: 'events', + name: 'Send reactions', + description: 'Set minimum power level to send reactions in room.', + default: 0, + }, redact: { name: 'Delete messages sent by others', description: 'Set minimum power level to delete messages in room.', @@ -135,7 +141,7 @@ const permissionsInfo = { }; const roomPermsGroups = { - 'General Permissions': ['users_default', 'events_default', 'redact', 'notifications'], + 'General Permissions': ['users_default', 'events_default', 'm.reaction', 'redact', 'notifications'], 'Manage members permissions': ['invite', 'kick', 'ban'], 'Room profile permissions': ['m.room.avatar', 'm.room.name', 'm.room.topic'], 'Settings permissions': ['state_default', 'm.room.canonical_alias', 'm.room.power_levels', 'm.room.encryption', 'm.room.history_visibility'],