mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	unread: Convert mark_topic_as_read to use stream IDs.
This is safer in its handling of potentially renamed streams.
This commit is contained in:
		@@ -126,11 +126,11 @@ exports.mark_stream_as_read = function mark_stream_as_read(stream_id, cont) {
 | 
			
		||||
        success:  cont});
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
exports.mark_topic_as_read = function mark_topic_as_read(stream, topic, cont) {
 | 
			
		||||
exports.mark_topic_as_read = function mark_topic_as_read(stream_id, topic, cont) {
 | 
			
		||||
    channel.post({
 | 
			
		||||
    url:      '/json/mark_topic_as_read',
 | 
			
		||||
    idempotent: true,
 | 
			
		||||
    data:     {stream_name: stream, topic_name: topic},
 | 
			
		||||
    data:     {stream_id: stream_id, topic_name: topic},
 | 
			
		||||
    success:  cont});
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user