Capture activeUserId at the start of each async function (fetchMessages, loadMoreMessages, pollMessages) and discard the response if the user changed contacts while the request was in-flight. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Capture activeUserId at the start of each async function (fetchMessages, loadMoreMessages, pollMessages) and discard the response if the user changed contacts while the request was in-flight. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>