mirror of https://github.com/zulip/zulip.git
is_me_message is an attribute of the message not the message_container
(imported from commit db36e529de92a82bb9c5df97030833ca2e3e0f80)
This commit is contained in:
parent
536449c6a4
commit
94279c0522
|
@ -225,7 +225,7 @@ MessageListView.prototype = {
|
||||||
|
|
||||||
// Join two groups into one.
|
// 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 (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;
|
first_msg_container.include_sender = false;
|
||||||
}
|
}
|
||||||
if (same_sender(last_msg_container, first_msg_container)) {
|
if (same_sender(last_msg_container, first_msg_container)) {
|
||||||
|
|
|
@ -207,7 +207,7 @@ set_global('unread', {message_unread: function () {}});
|
||||||
message1
|
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([
|
var message_group2 = build_message_group([
|
||||||
message2
|
message2
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in New Issue