element-hq / synapse

Synapse: Matrix homeserver written in Python/Twisted.
https://element-hq.github.io/synapse
GNU Affero General Public License v3.0
1.5k stars 184 forks source link

Searching for exact user ids in the user directory fails to match #3631

Open matrixbot opened 10 months ago

matrixbot commented 10 months ago

This issue has been migrated from #3631.


Description

curl 'https://matrix.half-shot.uk/_matrix/client/r0/user_directory/search?' --data '{"search_term":"@Half-Shot:half-shot.uk"}'

Results in: { "limited": false, "results": [] }

Whereas:

curl 'https://matrix.half-shot.uk/_matrix/client/r0/user_directory/search?' --data '{"search_term":"@Half-Shot:half-shot"}'

Comes back with many results, including the one I was after.

Version information

ell1e commented 5 months ago

For what it's worth this may be a GDPR issue (since it can make it seemingly impossible to delete your own messages if you can't find them).

ell1e commented 4 months ago

I wonder, is there any workaround for this? I only found some to find mentions of my user, but none to reliably just list all messages I sent.