mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	message: Allow accessing archived channel when not modifying message.
Fixes #33567. We have used the flag `is_modifying_message` since it's more generic than an archived channel specific flag and helps us understand better what is the condition where we do not want to allow archived channels. We have not added tests for message edit since it has an existing test for this.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							c71aeae34d
						
					
				
				
					commit
					5cca30d971
				
			@@ -40,7 +40,7 @@ def remove_reaction(
 | 
			
		||||
    emoji_code: str | None = None,
 | 
			
		||||
    reaction_type: str = "unicode_emoji",
 | 
			
		||||
) -> HttpResponse:
 | 
			
		||||
    message = access_message(user_profile, message_id, lock_message=True)
 | 
			
		||||
    message = access_message(user_profile, message_id, lock_message=True, is_modifying_message=True)
 | 
			
		||||
 | 
			
		||||
    if emoji_code is None:
 | 
			
		||||
        if emoji_name is None:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user