You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix AI messages not being taken into account when saving a draft in some 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
0 commit comments