mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-30 11:33:51 +00:00 
			
		
		
		
	util: Replace util.get_message_topic().
Replace `util.get_message_topic(message)` with `message.topic`. Fixes #13931
This commit is contained in:
		
				
					committed by
					
						 showell
						showell
					
				
			
			
				
	
			
			
			
						parent
						
							9d598d95a6
						
					
				
				
					commit
					efda2684ea
				
			| @@ -1,4 +1,3 @@ | ||||
| const util = require("./util"); | ||||
| const render_muted_topic_ui_row = require('../templates/muted_topic_ui_row.hbs'); | ||||
| const render_topic_muted = require('../templates/topic_muted.hbs'); | ||||
|  | ||||
| @@ -133,7 +132,7 @@ exports.unmute = function (stream_id, topic) { | ||||
|  | ||||
| exports.toggle_mute = function (message) { | ||||
|     const stream_id = message.stream_id; | ||||
|     const topic = util.get_message_topic(message); | ||||
|     const topic = message.topic; | ||||
|  | ||||
|     if (muting.is_topic_muted(stream_id, topic)) { | ||||
|         exports.unmute(stream_id, topic); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user