You've already forked matrix-react-sdk
							
							
				mirror of
				https://github.com/matrix-org/matrix-react-sdk.git
				synced 2025-11-04 11:51:45 +03:00 
			
		
		
		
	Replace kick terminology with Remove from chat (#7469)
				
					
				
			This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							54357c2d63
						
					
				
				
					commit
					f4a6219c88
				
			@@ -722,9 +722,10 @@ export const Commands = [
 | 
			
		||||
        renderingTypes: [TimelineRenderingType.Room],
 | 
			
		||||
    }),
 | 
			
		||||
    new Command({
 | 
			
		||||
        command: 'kick',
 | 
			
		||||
        command: 'remove',
 | 
			
		||||
        aliases: ["kick"],
 | 
			
		||||
        args: '<user-id> [reason]',
 | 
			
		||||
        description: _td('Kicks user with given id'),
 | 
			
		||||
        description: _td('Removes user with given id from this room'),
 | 
			
		||||
        runFn: function(roomId, args) {
 | 
			
		||||
            if (args) {
 | 
			
		||||
                const matches = args.match(/^(\S+?)( +(.*))?$/);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user