Hi I'm actually getting this exact same issue. I've tried everything, cancelling out listeners in the hopes of flushing out events, but nothing seems to resolve it. It's easily reproducible, but not on every single send. But for sure it will always happen at least once in a batch of 10 emails. So sending 10 emails in sequence and logging in presending and sent event listeners will demonstrate at least one case in which:
- sent fires BEFORE presending and carries the previous email's threadId, but the current emails messageId
- presending then fires afterwards (any mutations to the message do update the current message, not the message with the previous threadId that's logging)
- no sent event is fired with any updated threadId afterwards.
It's reproducible in box the old inboxSDK script and in the new npm package.
This is affecting our released chrome ext and resulting in a considering inflow of customer complaints and tickets :(