ConnectUni / connectuni

ConnectUni is a mobile application designed for college students to connect with each other in group chats and events through similar interests and classes.
https://connectuni.github.io/
1 stars 0 forks source link

Implement Functionality in a User's Join/Leave Button #104

Closed sanehirakenji closed 11 months ago

sanehirakenji commented 1 year ago

Do work for this in issue-104

Currently the Join/Leave button showing up on the list of groups in the "Current User Profile" and "Other User Profile" shows specifically "Join" or "leave".

Based on the currently logged in user, change this value to be dependent on if a user is in the group or not and update accordingly.

michho8 commented 11 months ago

In the current user profile, plan to display a modal notifying them that they left the group. Don't need to change the button that says, "Leave."

In another user's profile, all the buttons say, "Join," even when it's a shared group with the current user. Change the button to be dependent on whether the user is in the group too.

michho8 commented 11 months ago

On pause because we need to use Firebase to initialize data first - app crashes often