mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 18:36:36 +00:00
message_list: Don't leak date row headers when prepending messages.
(imported from commit 794c668dd79f89000e6559c0d96c78832e4e43d0)
This commit is contained in:
@@ -288,6 +288,8 @@ MessageList.prototype = {
|
||||
var top_messages = [];
|
||||
$.each(top_group, function (index, id) {
|
||||
rows.get(id, table_name).remove();
|
||||
// Remove any date row headers for these messages
|
||||
$('.date_row[data-zid=' + id + ']').remove();
|
||||
top_messages.push(self.get(id));
|
||||
});
|
||||
messages = messages.concat(top_messages);
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
{{/include_bookend}}
|
||||
|
||||
{{#if show_date}}
|
||||
<tr class="date_row"><td colspan="4">{{{show_date}}}</td></tr>
|
||||
<tr class="date_row" data-zid="{{id}}"><td colspan="4">{{{show_date}}}</td></tr>
|
||||
{{/if}}
|
||||
|
||||
{{#include_recipient}}
|
||||
|
||||
Reference in New Issue
Block a user