Fix per-user database queries for emoji reactions.
Fix per-user database queries for emoji reactions.

This was a classic database-queries-in-loop bug.

dhcrzf/zulip,christi3k/zulip,shubhamdhama/zulip,jainayush975/zulip,jrowan/zulip,PhilSk/zulip,jrowan/zulip,andersk/zulip,dawran6/zulip,j831/zulip,mahim97/zulip,cosmicAsymmetry/zulip,rishig/zulip,souravbadami/zulip,aakash-cr7/zulip,PhilSk/zulip,sonali0901/zulip,punchagan/zulip,showell/zulip,susansls/zulip,AZtheAsian/zulip,PhilSk/zulip,vabs22/zulip,hackerkid/zulip,christi3k/zulip,sharmaeklavya2/zulip,brockwhittaker/zulip,ryanbackman/zulip,eeshangarg/zulip,amanharitsh123/zulip,jrowan/zulip,sharmaeklavya2/zulip,niftynei/zulip,AZtheAsian/zulip,tommyip/zulip,ryanbackman/zulip,vaidap/zulip,jphilipsen05/zulip,punchagan/zulip,rht/zulip,brainwane/zulip,sonali0901/zulip,rht/zulip,shubhamdhama/zulip,showell/zulip,tommyip/zulip,jrowan/zulip,timabbott/zulip,Galexrt/zulip,synicalsyntax/zulip,eeshangarg/zulip,sharmaeklavya2/zulip,brockwhittaker/zulip,vaidap/zulip,andersk/zulip,verma-varsha/zulip,dawran6/zulip,aakash-cr7/zulip,susansls/zulip,dattatreya303/zulip,zulip/zulip,Galexrt/zulip,andersk/zulip,jphilipsen05/zulip,amyliu345/zulip,Diptanshu8/zulip,cosmicAsymmetry/zulip,blaze225/zulip,hackerkid/zulip,aakash-cr7/zulip,j831/zulip,vaidap/zulip,jainayush975/zulip,rishig/zulip,shubhamdhama/zulip,eeshangarg/zulip,christi3k/zulip,showell/zulip,zulip/zulip,dattatreya303/zulip,kou/zulip,sharmaeklavya2/zulip,cosmicAsymmetry/zulip,j831/zulip,PhilSk/zulip,timabbott/zulip,vabs22/zulip,kou/zulip,ryanbackman/zulip,punchagan/zulip,ryanbackman/zulip,shubhamdhama/zulip,verma-varsha/zulip,souravbadami/zulip,tommyip/zulip,timabbott/zulip,blaze225/zulip,JPJPJPOPOP/zulip,amanharitsh123/zulip,AZtheAsian/zulip,hackerkid/zulip,dhcrzf/zulip,christi3k/zulip,dattatreya303/zulip,jackrzhang/zulip,dattatreya303/zulip,aakash-cr7/zulip,shubhamdhama/zulip,mahim97/zulip,amyliu345/zulip,brainwane/zulip,tommyip/zulip,Diptanshu8/zulip,zulip/zulip,hackerkid/zulip,kou/zulip,Galexrt/zulip,tommyip/zulip,samatdav/zulip,jackrzhang/zulip,SmartPeople/zulip,aakash-cr7/zulip,dattatreya303/zulip,ryanbackman/zulip,timabbott/zulip,kou/zulip,kou/zulip,JPJPJPOPOP/zulip,rishig/zulip,brainwane/zulip,jackrzhang/zulip,amanharitsh123/zulip,JPJPJPOPOP/zulip,vaidap/zulip,zulip/zulip,isht3/zulip,AZtheAsian/zulip,isht3/zulip,vaidap/zulip,zulip/zulip,isht3/zulip,dhcrzf/zulip,JPJPJPOPOP/zulip,jphilipsen05/zulip,christi3k/zulip,hackerkid/zulip,Diptanshu8/zulip,susansls/zulip,samatdav/zulip,Galexrt/zulip,verma-varsha/zulip,amyliu345/zulip,kou/zulip,vabs22/zulip,vabs22/zulip,zulip/zulip,SmartPeople/zulip,brainwane/zulip,dawran6/zulip,blaze225/zulip,verma-varsha/zulip,punchagan/zulip,shubhamdhama/zulip,JPJPJPOPOP/zulip,zulip/zulip,sonali0901/zulip,dhcrzf/zulip,souravbadami/zulip,rishig/zulip,PhilSk/zulip,samatdav/zulip,eeshangarg/zulip,sonali0901/zulip,andersk/zulip,jphilipsen05/zulip,mahim97/zulip,samatdav/zulip,brockwhittaker/zulip,jainayush975/zulip,ryanbackman/zulip,kou/zulip,dawran6/zulip,punchagan/zulip,rishig/zulip,amyliu345/zulip,SmartPeople/zulip,Galexrt/zulip,niftynei/zulip,hackerkid/zulip,Diptanshu8/zulip,jackrzhang/zulip,amanharitsh123/zulip,synicalsyntax/zulip,mahim97/zulip,niftynei/zulip,samatdav/zulip,AZtheAsian/zulip,rishig/zulip,mahim97/zulip,jrowan/zulip,amyliu345/zulip,jackrzhang/zulip,dhcrzf/zulip,susansls/zulip,sharmaeklavya2/zulip,mahim97/zulip,hackerkid/zulip,isht3/zulip,blaze225/zulip,blaze225/zulip,eeshangarg/zulip,showell/zulip,punchagan/zulip,cosmicAsymmetry/zulip,niftynei/zulip,rishig/zulip,andersk/zulip,shubhamdhama/zulip,susansls/zulip,rht/zulip,SmartPeople/zulip,verma-varsha/zulip,souravbadami/zulip,dawran6/zulip,jphilipsen05/zulip,SmartPeople/zulip,rht/zulip,timabbott/zulip,dhcrzf/zulip,showell/zulip,jainayush975/zulip,sharmaeklavya2/zulip,susansls/zulip,jackrzhang/zulip,rht/zulip,sonali0901/zulip,showell/zulip,Diptanshu8/zulip,amanharitsh123/zulip,jphilipsen05/zulip,brainwane/zulip,synicalsyntax/zulip,brockwhittaker/zulip,dhcrzf/zulip,rht/zulip,niftynei/zulip,timabbott/zulip,j831/zulip,synicalsyntax/zulip,timabbott/zulip,brainwane/zulip,j831/zulip,vabs22/zulip,dattatreya303/zulip,blaze225/zulip,synicalsyntax/zulip,amanharitsh123/zulip,jainayush975/zulip,j831/zulip,rht/zulip,brainwane/zulip,cosmicAsymmetry/zulip,verma-varsha/zulip,punchagan/zulip,jrowan/zulip,brockwhittaker/zulip,PhilSk/zulip,jainayush975/zulip,Galexrt/zulip,synicalsyntax/zulip,christi3k/zulip,AZtheAsian/zulip,vaidap/zulip,isht3/zulip,SmartPeople/zulip,souravbadami/zulip,eeshangarg/zulip,showell/zulip,samatdav/zulip,andersk/zulip,JPJPJPOPOP/zulip,jackrzhang/zulip,souravbadami/zulip,niftynei/zulip,isht3/zulip,aakash-cr7/zulip,andersk/zulip,eeshangarg/zulip,brockwhittaker/zulip,Galexrt/zulip,tommyip/zulip,synicalsyntax/zulip,Diptanshu8/zulip,sonali0901/zulip,vabs22/zulip,tommyip/zulip,dawran6/zulip,amyliu345/zulip,cosmicAsymmetry/zulip