Spencer-Mosley / reddit-clone-yt

reddit-clone-yt.vercel.app
1 stars 0 forks source link

when a user joins a class, add their array of push notifications to the class and comments #29

Open Spencer-Mosley opened 6 months ago

Spencer-Mosley commented 5 months ago

to do this, just update the push notification logic when the logic gets push. Could update this in client but probably should be moved to a server side function. First step is to look at the existing push logic and figure out from there

Spencer-Mosley commented 5 months ago

this code in post setMemberListTokens(currentClassroom.userTokens); pulls the tokens from the list but we could have it pull the emails and look up each users token array

Spencer-Mosley commented 5 months ago

this is the code in comment.js that looks at the hard coded tokens. setpostCommenterListTokens(route.params.item.commenterTokens);

Spencer-Mosley commented 5 months ago

fix it client side for now and will make a issue to handle it server side so it gets implemented later