Skip to content

Commit 04d2c95

Browse files
committed
eventTypes [nfc]: Comment on MessageEvent not representing raw server data
1 parent f371ef2 commit 04d2c95

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/api/eventTypes.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ export type CustomProfileFieldsEvent = {|
9999
export type MessageEvent = $ReadOnly<{|
100100
...EventCommon,
101101
type: typeof EventTypes.message,
102+
103+
// TODO: This doesn't describe what we get from the server (see, e.g.,
104+
// avatar_url). Write a type that does; perhaps it can go in
105+
// rawModelTypes.js.
102106
message: Message,
103107

104108
/** See the same-named property on `Message`. */

0 commit comments

Comments
 (0)