message_store: Mark optional attributes as optional.

These aren't set when the Message object is first created
and only used within `message_list_view`, so they should be
optional.
This commit is contained in:
evykassirer 2024-05-28 12:46:23 -07:00 committed by Tim Abbott
parent 26dbb953e0
commit 61371868ad
1 changed files with 5 additions and 3 deletions

View File

@ -121,9 +121,11 @@ export type Message = (
sent_by_me: boolean;
reply_to: string;
// These properties are used in `message_list_view.js`.
message_reactions: MessageCleanReaction[];
url: string;
// These properties are set and used in `message_list_view.js`.
// TODO: It would be nice if we could not store these on the message
// object and only reference them within `message_list_view`.
message_reactions?: MessageCleanReaction[];
url?: string;
// Used in `markdown.js`, `server_events.js`, and `set_message_booleans`
flags?: string[];