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:
Hashir Sarwar
2020-03-22 22:40:05 +05:00
committed by Tim Abbott
parent c5eddcb1ca
commit ee0d4541b4
28 changed files with 138 additions and 136 deletions

View File

@@ -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 [];