mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	zcommand: Add light/dark mode command aliases for day/night mode.
Fixes #10095.
This commit is contained in:
		@@ -77,12 +77,8 @@ exports.process = function (message_content) {
 | 
			
		||||
        return true;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (content === '/day') {
 | 
			
		||||
        update_setting(content);
 | 
			
		||||
        return true;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (content === '/night') {
 | 
			
		||||
    var mode_commands = ['/day', '/night', '/light', '/dark'];
 | 
			
		||||
    if (mode_commands.indexOf(content) >= 0) {
 | 
			
		||||
        update_setting(content);
 | 
			
		||||
        return true;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user