-
-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: api_types/core/model/ui/boxes: Clarify draft types & naming.
Previously a draft was a Message, which is a much more complex data structure received from the server with differently-named fields. The draft system only requires the data which is subsequently sent via the send_message API call, so a simpler API-specific set of data structures are created and used for drafts named ~ Composition. Other than typing, the new data structures allow space to define where we wish to move to use newer API forms (ids vs strings) in future. An extra 'stream_id' field is present in StreamComposition, not present in the API, until we migrate to use IDs. To emphasize the message/draft distinction and migration, variable names are also updated to match.
- Loading branch information
Showing
5 changed files
with
45 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters