mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
Extract topic_data.js.
This new module tracks the recent topic names for any given stream. The code was pulled over almost verbatim from stream_data.js, with minor renames to the function names. We introduced a minor one-line function called stream_has_topics.
This commit is contained in:
@@ -152,9 +152,9 @@ exports.try_deliver_locally = function try_deliver_locally(message_request) {
|
||||
exports.edit_locally = function edit_locally(message, raw_content, new_topic) {
|
||||
message.raw_content = raw_content;
|
||||
if (new_topic !== undefined) {
|
||||
stream_data.process_message_for_recent_topics(message, true);
|
||||
topic_data.process_message(message, true);
|
||||
message.subject = new_topic;
|
||||
stream_data.process_message_for_recent_topics(message);
|
||||
topic_data.process_message(message);
|
||||
}
|
||||
|
||||
markdown.apply_markdown(message);
|
||||
|
||||
Reference in New Issue
Block a user