You've already forked matrix-react-sdk
							
							
				mirror of
				https://github.com/matrix-org/matrix-react-sdk.git
				synced 2025-11-03 00:33:22 +03:00 
			
		
		
		
	Expose redaction power level in room settings (#7599)
This commit is contained in:
		@@ -58,6 +58,7 @@ const plEventsToShow: Record<string, IEventShowOpts> = {
 | 
				
			|||||||
    [EventType.RoomServerAcl]: { isState: true, hideForSpace: true },
 | 
					    [EventType.RoomServerAcl]: { isState: true, hideForSpace: true },
 | 
				
			||||||
    [EventType.RoomPinnedEvents]: { isState: true, hideForSpace: true },
 | 
					    [EventType.RoomPinnedEvents]: { isState: true, hideForSpace: true },
 | 
				
			||||||
    [EventType.Reaction]: { isState: false, hideForSpace: true },
 | 
					    [EventType.Reaction]: { isState: false, hideForSpace: true },
 | 
				
			||||||
 | 
					    [EventType.RoomRedaction]: { isState: false, hideForSpace: true },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // TODO: Enable support for m.widget event type (https://github.com/vector-im/element-web/issues/13111)
 | 
					    // TODO: Enable support for m.widget event type (https://github.com/vector-im/element-web/issues/13111)
 | 
				
			||||||
    "im.vector.modular.widgets": { isState: true, hideForSpace: true },
 | 
					    "im.vector.modular.widgets": { isState: true, hideForSpace: true },
 | 
				
			||||||
@@ -241,6 +242,7 @@ export default class RolesRoomSettingsTab extends React.Component<IProps> {
 | 
				
			|||||||
            [EventType.RoomEncryption]: _td("Enable room encryption"),
 | 
					            [EventType.RoomEncryption]: _td("Enable room encryption"),
 | 
				
			||||||
            [EventType.RoomServerAcl]: _td("Change server ACLs"),
 | 
					            [EventType.RoomServerAcl]: _td("Change server ACLs"),
 | 
				
			||||||
            [EventType.Reaction]: _td("Send reactions"),
 | 
					            [EventType.Reaction]: _td("Send reactions"),
 | 
				
			||||||
 | 
					            [EventType.RoomRedaction]: _td("Remove messages sent by me"),
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            // TODO: Enable support for m.widget event type (https://github.com/vector-im/element-web/issues/13111)
 | 
					            // TODO: Enable support for m.widget event type (https://github.com/vector-im/element-web/issues/13111)
 | 
				
			||||||
            "im.vector.modular.widgets": isSpaceRoom ? null : _td("Modify widgets"),
 | 
					            "im.vector.modular.widgets": isSpaceRoom ? null : _td("Modify widgets"),
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1580,6 +1580,7 @@
 | 
				
			|||||||
    "Enable room encryption": "Enable room encryption",
 | 
					    "Enable room encryption": "Enable room encryption",
 | 
				
			||||||
    "Change server ACLs": "Change server ACLs",
 | 
					    "Change server ACLs": "Change server ACLs",
 | 
				
			||||||
    "Send reactions": "Send reactions",
 | 
					    "Send reactions": "Send reactions",
 | 
				
			||||||
 | 
					    "Remove messages sent by me": "Remove messages sent by me",
 | 
				
			||||||
    "Modify widgets": "Modify widgets",
 | 
					    "Modify widgets": "Modify widgets",
 | 
				
			||||||
    "Manage pinned events": "Manage pinned events",
 | 
					    "Manage pinned events": "Manage pinned events",
 | 
				
			||||||
    "Default role": "Default role",
 | 
					    "Default role": "Default role",
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user