Show latest PMs when searching in:private @usermention

AI-generated summary

The discussion revolves around an issue with searching private messages (PMs) in Discourse. erlend_sh reported that typing in:private @usermention no longer shows the most recent PMs between the user and the mentioned person, unlike before. sam confirmed the issue and suspects a regression. joffreyjaffeux asked when the issue started, and sam thinks it might be related to changes made by cpradio to the auto-complete feature. cpradio clarified that their changes only affected user interaction and didn’t modify the server-side search processing. sam will investigate and debug the issue.

I used to be able to type in something like the following, and it would show the most recent PMs between me and that person:

Maybe this was never an intentional feature, but this no longer works. I now need to type in a word for the search to work.

4 « J'aime »

Should this work @sam?

1 « J'aime »

Hmm … this extends beyond …

@sam #support  

Does not work as well… I wonder if something regressed here, will bookmark…

2 « J'aime »

@erlend_sh any idea when it’s started ?

Wild guess: FIX: Strip zero-width characters from search terms. · discourse/discourse@684b05f · GitHub

Nahh I think this also relates to magic @ handling @cpradio added a while back there was another topic about it.

I’m not sure why, all I did was permit the auto-complete to show. It still fills out the input box the same, just less user interaction. The above scenarios fail to return anything even if I type a space after auto-complete, which either means, it isn’t sending the query, or the server-side is failing to return anything/process the search (which wasn’t touched with auto-complete)

It could be though, but I don’t recall doing any trim or what-not, but that was months ago.

3 « J'aime »

No worries, I will debug this … got it bookmarked.

2 « J'aime »