piyush-eon / mern-chat-app

https://www.youtube.com/playlist?list=PLKhlp2qtUcSZsGkxAdgnPcHioRr-4guZf
518 stars 503 forks source link

Other users not found in Search User field. #44

Open pranjal-sarkar opened 11 months ago

pranjal-sarkar commented 11 months ago

I cloned the repo and set up my own Mongodb Atlas database and registered two users in the same. Now I want to make a chat room for these two users.

But when I logged into one of the users, and tried to search for the other registered user from the search input field, I could only see the profile of the current registered user(that is, the person who is logged in). The other user is not coming in the search results.

For example,

There are two persons: Name: PersonA Email: persona@example.com Name: PersonB Email: personb@example.com

Now I have logged in with persona@example.com and I tried to search PersonB in the search bar. But the problem is I could not find PersonB. Instead I found PersonA in the search results. Is there something am I missing?

abhimanyu12321 commented 10 months ago

I have fixed it

DulanjaliSenarathna commented 3 months ago

Me too

How?