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_store: Provide more information for `Message` properties.

Aman Agrawalc6d720f532c9
diff --git a/web/src/message_store.ts b/web/src/message_store.ts
index 95534569329..bc06d4c9a58 100644
--- a/web/src/message_store.ts
+++ b/web/src/message_store.ts
@@ -183,12 +183,20 @@ export type Message = (
// `convert_raw_message_to_message_with_booleans`
flags?: string[];
- small_avatar_url?: string | null; // Used in `message_avatar.hbs`
- status_emoji_info?: UserStatusEmojiInfo | undefined; // Used in `message_body.hbs`
+ // Used in `message_avatar.hbs` to render sender avatar in
+ // message list.
+ small_avatar_url?: string | null;
- local_edit_timestamp?: number; // Used for edited messages
+ // Used in `message_body.hbs` to show sender status emoji alongside
+ // their name in message list.
+ status_emoji_info?: UserStatusEmojiInfo | undefined;
- notification_sent?: boolean; // Used in message_notifications
+ // Used for edited messages to show their last edit time.
+ local_edit_timestamp?: number;
+
+ // Used in message_notifications to track if a notification has already
+ // been sent for this message.
+ notification_sent?: boolean;
} & (
| {
type: "private";