mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	unread: Simplify code to mark messages as read.
We now call the function mark_as_read(), and it only requires passing in a message_id.
This commit is contained in:
		@@ -41,7 +41,9 @@ exports.mark_messages_as_read = function mark_messages_as_read(messages, options
 | 
			
		||||
        message.flags = message.flags || [];
 | 
			
		||||
        message.flags.push('read');
 | 
			
		||||
        message.unread = false;
 | 
			
		||||
        unread.process_read_message(message, options);
 | 
			
		||||
 | 
			
		||||
        unread.mark_as_read(message.id);
 | 
			
		||||
 | 
			
		||||
        home_msg_list.show_message_as_read(message, options);
 | 
			
		||||
        message_list.all.show_message_as_read(message, options);
 | 
			
		||||
        if (message_list.narrowed) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user