-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix AI messages not being taken into account when saving a draft in s…
…ome cases The bug would happen in this situation: * When generating a message with AI, as AiPropositionFragment is navigated to, NewMessageFragment would export his body in the `subjectAndBodyChannel`. * When inserting the AI proposition, we would navigate back to NewMessageFragment. * When we want to now save or send the draft we will receive values through the channel but the channel's value was never consumed and the previous body is still there even though we want to wait for the new body. This commit introduces a `channelExpirationIdTarget` that will let us know if a message is too old and needs to be discarded while we wait for the correct message to get through the channel
- Loading branch information
Showing
2 changed files
with
28 additions
and
4 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