You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No followers/following complexity => just friends or not: send friend request, if accept then both are friends.
Use Firestore to store friendships in the form of documents:
a. Document name: "FRIEND1_FRIEND2" where FRIEND1 would be asker ID and FRIEND2 receiver ID.
b. Document contents: status of request, sent date, accepted date, common game IDs (maybe not needed cuz we can query it from Realtime DB anytime) to have a list of common games and count (maybe even make friendship badges?)
Call API to send invite => use Realtime DB and listen (need to store them temporarily and need rapid access)
Call API to accept invite => update Realtime DB (remove invite) and join game
Linked to touficbatache/SecretHitlerSvelte#3
Originally posted in touficbatache/SecretHitlerSvelte#3 (comment)
The text was updated successfully, but these errors were encountered: