mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	Use real name in agent message box, #3654
This commit is contained in:
		
							parent
							
								
									bc6d3ce8a0
								
							
						
					
					
						commit
						1b49f64498
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1076,6 +1076,8 @@ function handleServerCommand(data) {
 | 
			
		|||
                        break;
 | 
			
		||||
                    }
 | 
			
		||||
                    case 'messagebox': {
 | 
			
		||||
                        sendConsoleText(JSON.stringify(data));
 | 
			
		||||
 | 
			
		||||
                        // Display a message box
 | 
			
		||||
                        if (data.title && data.msg)
 | 
			
		||||
                        {
 | 
			
		||||
| 
						 | 
				
			
			@ -1095,6 +1097,7 @@ function handleServerCommand(data) {
 | 
			
		|||
                                        ipr.title = data.title;
 | 
			
		||||
                                        ipr.message = data.msg;
 | 
			
		||||
                                        ipr.username = data.username;
 | 
			
		||||
                                        if (data.realname && (data.realname != '')) { ipr.username = data.realname; }
 | 
			
		||||
                                        global._clientmessage = ipr.then(function (img)
 | 
			
		||||
                                        {
 | 
			
		||||
                                            this.messagebox = require('win-dialog').create(this.title, this.message, this.username, { timeout: 120000, b64Image: img.split(',').pop(), background: color_options.background, foreground: color_options.foreground }); 
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue