mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	topic_data: Rename topic_data module to stream_topic_history.
				
					
				
			`stream_topic_history` is a more appropriate name as this module will contain information about last message of a stream in upcoming commits. Function and variable names are changed accordingly like: * topic_history() -> per_stream_history() * get_recent_names() -> get_recent_topic_names() * name -> topic_name
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							c5eddcb1ca
						
					
				
				
					commit
					ee0d4541b4
				
			@@ -337,7 +337,7 @@ function get_topic_suggestions(last, operators) {
 | 
			
		||||
        return [];
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    let topics = topic_data.get_recent_names(stream_id);
 | 
			
		||||
    let topics = stream_topic_history.get_recent_topic_names(stream_id);
 | 
			
		||||
 | 
			
		||||
    if (!topics || !topics.length) {
 | 
			
		||||
        return [];
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user