mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
topic-mention: Support updating old renders on stream rename.
This commit is contained in:
committed by
Tim Abbott
parent
3698cdcc58
commit
e68f90db9c
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user