mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	upload: Fix single attachments not being claimed on message edit.
Fixed an attachments not being claimed if just one new attachment is added (aka the common case).
This commit is contained in:
		@@ -3368,5 +3368,5 @@ def check_attachment_reference_change(prev_content, message):
 | 
			
		||||
            pass
 | 
			
		||||
 | 
			
		||||
    to_add = list(new_attachments - prev_attachments)
 | 
			
		||||
    if len(to_add) > 1:
 | 
			
		||||
    if len(to_add) > 0:
 | 
			
		||||
        do_claim_attachments(message)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user