Skip to content

Commit 9f75da8

Browse files
committed
api types [nfc]: Comment on subtlety in ServerMessageOf['edit_history']
This could be easy to miss when we address the TODO(server-5.0) on ServerMessageEdit.
1 parent 505f78f commit 9f75da8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/api/messages/getMessages.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ type ServerMessageOf<M: Message> = $ReadOnly<{|
6262
...$Exact<M>,
6363
avatar_url: string | null,
6464
reactions: $ReadOnlyArray<ServerReaction>,
65+
66+
// Unlike Message['edit_history'], this can't be `null`.
6567
edit_history?: $ReadOnlyArray<ServerMessageEdit>,
6668
|}>;
6769

0 commit comments

Comments
 (0)