Fix race condition where switching channels and received a new message simultaneously causes the channel to briefly flash as unread

Description

This ticket comes from the bug found here:

We created a quick fix to mitigate most of the race condition described, but unfortunately it does fully solve the issue.

This ticket aims to fully correct the issue by re-working the way unreads are managed in the redux layer such that the race condition disappears.

QA Test Steps

None

Mana

None

Assignee

Unassigned

QA Assignee

None

Reporter

Devin Binnie

Epic Link

None

Fix versions

Mattermost Team

Apps

Sprint

None

Labels

QA Testing Areas

None

GitHub Issue

None

Components

None
Configure