Auto-complete doesn't function properly when auto-completing the name of a person who is the first person named in a group DM channel
Appears on community.mattermost.com but not on oss.mattermost.com
Duplicate Group DMs shown, and can't arrow down past them




If you can, link to the line of code that might be responsible for the problem
NOTE: Please let me know if I'm eligible for a Bug Hunter Coin on this report? I can be reached at 855 El Camino Real, 13A-168, Palo Alto, CA, 94301. I'd like test out the experience of getting one. Btw, one benefit of the coin program is that it only applies to filing a ticket in GitHub and not just adding the info in a channel.
Hi @it33,
Is this reproducing for you consistently and is there any other additional information you might be able to share (e.g. OS and version)?
I wasn't able to reproduce this and our QAs weren't able to reproduce it so far either.
I've run into the same problem.
Environment:
v5.10.0Steps to repo:
@remindbot and let it stay on the LTSremObserved behaviour:

I also can't use the keyboard to select the channel.
Expected behaviour:
Repos 100% with this steps. I'm not sure if this is related to bot accounts or not. I've only been able to repo this bug with this specific user account(@remindbot).
Windows 10 on latest Chrome
@amyblais yes, I'm still having the issue. Not sure if this is related but as I try different searches for channel sometimes I get the wrong results in auto-complete, e.g. "ar" doesn't appear in any of these results:

This list can stay there for 10 seconds or more (i..e if it's a lazy-load issue it takes a while). When I leave the tab and navigate back then it looks like it works:

However the original problem of duplicate channels and then down arrow being able to move past the duplicate entries, is still here

Then when I try az I get the right results and group DMs incorrectly

I'm finding a pattern where group direct message channels are incorrectly showing up in the channel search.

I opened a bug ticket for this here: https://mattermost.atlassian.net/browse/MM-15363.
I'll look into the Bug Hunter Coin shortly,
I started looking at this last night and I think I have discovered the issue causing the duplicate GMs that @it33 is seeing. I'll be submitting a fix for that sometime today. The issue that @hanzei is seeing is related but different and is a known issue that's going to require a significant reworking of our autocomplete suggestion to fix so at this time it's not worth the effort, see https://mattermost.atlassian.net/browse/MM-11193
@it33 I've coordinated with Corey to send out a Bug Hunter Coin for you. Thank you for reporting this!
Closing this issue as this has been fixed for upcoming v5.12 release (to be released in June 16th).
Most helpful comment
I started looking at this last night and I think I have discovered the issue causing the duplicate GMs that @it33 is seeing. I'll be submitting a fix for that sometime today. The issue that @hanzei is seeing is related but different and is a known issue that's going to require a significant reworking of our autocomplete suggestion to fix so at this time it's not worth the effort, see https://mattermost.atlassian.net/browse/MM-11193