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 
			
		
		
		
	Fix case-sensitivity of /me to match rest of slash commands
also better error handling for attempted runs of unimplemented commands
This commit is contained in:
		@@ -118,7 +118,7 @@ export class Command {
 | 
			
		||||
 | 
			
		||||
    run(roomId: string, args: string, cmd: string) {
 | 
			
		||||
        // if it has no runFn then its an ignored/nop command (autocomplete only) e.g `/me`
 | 
			
		||||
        if (!this.runFn) return;
 | 
			
		||||
        if (!this.runFn) return reject(_t("Command error"));
 | 
			
		||||
        return this.runFn.bind(this)(roomId, args, cmd);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user