mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
message_list_view: Remove include_footer parameter.
This only set the last_message CSS class, which is no longer used for styling or JavaScript code. (The calculation was also wrong, in that new messages arriving would not cause it to be removed from the previous message with the last_message class).
This commit is contained in:
@@ -436,7 +436,6 @@ export class MessageListView {
|
||||
current_group,
|
||||
current_group.message_containers[0],
|
||||
);
|
||||
current_group.message_containers.at(-1).include_footer = true;
|
||||
new_message_groups.push(current_group);
|
||||
}
|
||||
};
|
||||
@@ -445,7 +444,6 @@ export class MessageListView {
|
||||
const message_reactions = reactions.get_message_reactions(message_container.msg);
|
||||
message_container.msg.message_reactions = message_reactions;
|
||||
message_container.include_recipient = false;
|
||||
message_container.include_footer = false;
|
||||
|
||||
if (
|
||||
same_recipient(prev, message_container) &&
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div zid="{{msg/id}}" id="{{table_name}}{{msg/id}}"
|
||||
class="message_row{{^msg/is_stream}} private-message{{/msg/is_stream}}{{#include_sender}} include-sender{{/include_sender}}{{#if mention_classname}} {{mention_classname}}{{/if}}{{#include_footer}} last_message{{/include_footer}}{{#msg.unread}} unread{{/msg.unread}} {{#if msg.locally_echoed}}local{{/if}} selectable_row"
|
||||
class="message_row{{^msg/is_stream}} private-message{{/msg/is_stream}}{{#include_sender}} include-sender{{/include_sender}}{{#if mention_classname}} {{mention_classname}}{{/if}}{{#msg.unread}} unread{{/msg.unread}} {{#if msg.locally_echoed}}local{{/if}} selectable_row"
|
||||
role="listitem">
|
||||
<div class="unread_marker"><div class="unread-marker-fill"></div></div>
|
||||
{{#if want_date_divider}}
|
||||
|
||||
Reference in New Issue
Block a user