topic-mention: Support updating old renders on stream rename.

This commit is contained in:
Rohitt Vashishtha
2019-06-22 00:32:02 +05:30
committed by Tim Abbott
parent 3698cdcc58
commit e68f90db9c

View File

@@ -580,6 +580,17 @@ MessageListView.prototype = {
}
});
content.find('a.stream-topic').each(function () {
var stream_id = $(this).attr('data-stream-id');
if (stream_id && !$(this).find(".highlight").length) {
// Display the current name for stream if it is not
// being displayed in search highlight.
var text = $(this).text();
var topic = text.split('>', 2)[1];
$(this).text("#" + stream_data.maybe_get_stream_name(stream_id) + ' > ' + topic);
}
});
// Display emoji (including realm emoji) as text if
// page_params.emojiset is 'text'.
if (page_params.emojiset === 'text') {