diff --git a/static/js/message_list_view.js b/static/js/message_list_view.js index 54d4b52930..a8717e0f0a 100644 --- a/static/js/message_list_view.js +++ b/static/js/message_list_view.js @@ -225,7 +225,7 @@ MessageListView.prototype = { // Join two groups into one. if (this.collapse_messages && same_recipient(last_msg_container, first_msg_container) && same_day(last_msg_container, first_msg_container) && (last_msg_container.msg.historical === first_msg_container.msg.historical)) { - if (!last_msg_container.status_message && !first_msg_container.is_me_message && same_sender(last_msg_container, first_msg_container)) { + if (!last_msg_container.status_message && !first_msg_container.msg.is_me_message && same_sender(last_msg_container, first_msg_container)) { first_msg_container.include_sender = false; } if (same_sender(last_msg_container, first_msg_container)) { diff --git a/zerver/tests/frontend/node/message_list_view.js b/zerver/tests/frontend/node/message_list_view.js index d9268b9060..5e64f454fc 100644 --- a/zerver/tests/frontend/node/message_list_view.js +++ b/zerver/tests/frontend/node/message_list_view.js @@ -207,7 +207,7 @@ set_global('unread', {message_unread: function () {}}); message1 ]); - var message2 = build_message_context({}, {is_me_message: true}); + var message2 = build_message_context({is_me_message: true}); var message_group2 = build_message_group([ message2 ]);