Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

message_list_view: Initialize status_message even for hidden messages.

Anders Kaseorge029fe624949
diff --git a/web/src/message_list_view.js b/web/src/message_list_view.js
index 1073189c7b5..8d8425777b0 100644
--- a/web/src/message_list_view.js
+++ b/web/src/message_list_view.js
@@ -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