mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 14:03:30 +00:00 
			
		
		
		
	frontend: Implement 'invisible mode' feature.
Transitions the frontend of the web app to no longer use the user status `away` field for setting a user's activity status to be 'unavailable' (which is now a deprecated way to access a user's `presence_enabled` setting). Instead we now directly use and update the user's `presence_enabled` setting for this feature. Renames frontend code related to the feature to `invisible_mode` vs `away`. We lose node test coverage in `user_status.js` because we are now using `channel.patch` to send these user setting updates to the server. Removes the temporary updates to `server_events_dispatch.py` (and related tests) made in a previous commit, since we no longer have or need the `away_user_ids` set.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							b2e0b5187d
						
					
				
				
					commit
					d5b7551f09
				
			@@ -62,7 +62,7 @@ export function submit_new_status() {
 | 
			
		||||
        return;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    user_status.server_update({
 | 
			
		||||
    user_status.server_update_status({
 | 
			
		||||
        status_text: new_status_text,
 | 
			
		||||
        emoji_name: selected_emoji_info.emoji_name || "",
 | 
			
		||||
        emoji_code: selected_emoji_info.emoji_code || "",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user