PUN 2 Simple Friends Question
Options
Hi,
I wanted to verify, if I have a user add a friend to his account (which I store in his profile), there's no query I could run as to whether that friend id exists or not. Is that correct?
Thanks!
Jeff.
I wanted to verify, if I have a user add a friend to his account (which I store in his profile), there's no query I could run as to whether that friend id exists or not. Is that correct?
Thanks!
Jeff.
0
Comments
-
Hi @jpac,
Thank you for choosing Photon!
Whether you call FindFriends from Photon Realtime or PUN or call AddFriends/RemoveFriends from Photon Chat we don't verify the existence of the user. So any valid string can be used as UserId.
There is no way to find out if a user exists in Photon using a UserId string.
FindFriends will tell you that a user is offline if it does not exist.
AddFriends/RemoveFriends will just add/remove that UserId string to/from the list of friends server side.0