User should able to mention themself
Describe the bug The autocomplete list the COOL gets from richdocuments doesn't have username of user typing the mention. Therefore, they can't mention themselves
To Reproduce Try to mention yourself in the document
Expected behavior User should able to mention themself
@elzody Maybe a quick one to fix if you are working in that area anyways right now?
I've discovered that the currently logged-in user is removed from the search results from the autocomplete API, unless you specifically search for the entire UID. For example, if logged-in as user Jane, and you hit the autocomplete API with jan, you will receive nothing. But, if you search for the entire name jane you will get Jane's user. But, if logged-in as another user, say Bob, he can search for jan just fine and receive jane as a result.
Not sure how to bypass this, but for now, entering your entire username should work.
In tables we just manually add the current user as a workaround. Should be a quick fix for richdocuments as well with that:
https://github.com/nextcloud/tables/pull/1756