Ok I know why it was not obvious to me, because I had fixed this problem in another way in my emoji picker branch that I just merged. This PR will also remove the fix you linked: DEV: removes non needed special case by jjaffeux · Pull Request #30638 · discourse/discourse · GitHub
It should all work without any special case now. Thanks