message_list_view: Initialize status_message even for hidden messages.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-03-24 15:40:58 -07:00
committed by Tim Abbott
parent 6211939020
commit e029fe6249

View File

@@ -1414,12 +1414,9 @@ export class MessageListView {
}
_maybe_format_me_message(message_container) {
if (message_container.is_hidden) {
// If the message is to be hidden anyway, no need to render
// it differently.
return;
}
if (message_container.msg.is_me_message) {
// If the message is to be hidden anyway, no need to render
// it differently.
if (!message_container.is_hidden && message_container.msg.is_me_message) {
// Slice the '<p>/me ' off the front, and '</p>' off the first line
// 'p' tag is sliced off to get sender in the same line as the
// first line of the message