Searching for "in:~channel" causes the channel being searched in, to be bolded in the LHS channels list

Description

  • Reproduces on `master` and found while testing the search fix PR here. Devin does not think it's caused by his PR.

  • I don't have concrete repro steps and there are no errors in the JS console but I've attached a GIF of the channel bolding in the LHS. Takes quite a while to get it to repro so sorry about having to watch the GIF until the very end!

Steps:
1. Create some test messages in two channels
2. Search for individual words that you know will return results, search for a string in quotes, search for "in:~channel"
3. Change channels a couple of times and search again for "in:~channel"

Observed:
The channel name I typed in the search input box for "in:~channel" becomes bolded in the LHS channels list

Expected:
The channel name does not become bolded

QA Test Steps

None

Status

Mana

None

Assignee

Unassigned

Reporter

Lindy Isherwood

Epic Link

None

Fix versions

None

Mattermost Team

Sustained Engineering

Sprint

None

Labels

None

GitHub Issue

None

QA Testing Areas

Search