mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 23:43:43 +00:00
message_list_view: Initialize status_message even for hidden messages.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
6211939020
commit
e029fe6249
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user