mirror of https://github.com/zulip/zulip.git
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:
parent
26dbb953e0
commit
61371868ad
|
@ -121,9 +121,11 @@ export type Message = (
|
||||||
sent_by_me: boolean;
|
sent_by_me: boolean;
|
||||||
reply_to: string;
|
reply_to: string;
|
||||||
|
|
||||||
// These properties are used in `message_list_view.js`.
|
// These properties are set and used in `message_list_view.js`.
|
||||||
message_reactions: MessageCleanReaction[];
|
// TODO: It would be nice if we could not store these on the message
|
||||||
url: string;
|
// 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`
|
// Used in `markdown.js`, `server_events.js`, and `set_message_booleans`
|
||||||
flags?: string[];
|
flags?: string[];
|
||||||
|
|
Loading…
Reference in New Issue