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 
			
		
		
		
	Add modal to confirm that rageshake from cmd was sent
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
		@@ -920,10 +920,18 @@ export const Commands = [
 | 
			
		||||
        description: _td("Send a bug report with logs"),
 | 
			
		||||
        args: "<description>",
 | 
			
		||||
        runFn: function(roomId, args) {
 | 
			
		||||
            return success(sendBugReport(SdkConfig.get().bug_report_endpoint_url, {
 | 
			
		||||
                userText: args,
 | 
			
		||||
                sendLogs: true,
 | 
			
		||||
            }));
 | 
			
		||||
            return success(
 | 
			
		||||
                sendBugReport(SdkConfig.get().bug_report_endpoint_url, {
 | 
			
		||||
                    userText: args,
 | 
			
		||||
                    sendLogs: true,
 | 
			
		||||
                }).then(() => {
 | 
			
		||||
                    const InfoDialog = sdk.getComponent('dialogs.InfoDialog');
 | 
			
		||||
                    Modal.createTrackedDialog('Slash Commands', 'Rageshake sent', InfoDialog, {
 | 
			
		||||
                        title: _t('Logs sent'),
 | 
			
		||||
                        description: _t('Thank you!'),
 | 
			
		||||
                    });
 | 
			
		||||
                }),
 | 
			
		||||
            );
 | 
			
		||||
        },
 | 
			
		||||
        category: CommandCategories.advanced,
 | 
			
		||||
    }),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user