HomePhabricator
Diffusion Comm 36fd31781caa

[lib] Add messageInfoType field to ChatMessageInfoItem

Description

[lib] Add messageInfoType field to ChatMessageInfoItem

Summary:
In a future diff I'm going to be changing the type of robotext, so our current typeof robotext === 'string' runtime assertion won't be as easy to make.

Instead, I extend the types in this diff to make a different kind of easy runtime assertion possible.

Depends on D6505

Test Plan: Flow

Reviewers: atul

Reviewed By: atul

Subscribers: tomek

Differential Revision: https://phab.comm.dev/D6506

Details

Provenance
ashoatAuthored on Feb 1 2023, 5:21 AM
Reviewer
atul
Differential Revision
D6506: [lib] Add messageInfoType field to ChatMessageInfoItem
Parents
rCOMMf4e5cf0e3d3c: [web][native] Always generate key from keyIndex in RobotextMessage
Branches
Unknown
Tags
Unknown