Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Groups chat #345

Merged
merged 22 commits into from
Aug 4, 2020
Merged

Groups chat #345

merged 22 commits into from
Aug 4, 2020

Conversation

dmitrizagidulin
Copy link
Collaborator

@barankyle's WIP PR.

@dmitrizagidulin
Copy link
Collaborator Author

@barankyle - let's pass the CI tests, and merge this into dev.

Users can accept invites from the profile modal.
partyUsers since their logic is intertwined enough to make having
separate reducers annoyingly complex.
Front-end chat interface is in rough shape, need to fix state update.
Clicking a message populates its messages in a list.
Sending a message triggers an update on that channel's messages.
Started converting Profile modal to drawers.
drawers are not in place.

Added logic to groupUser and partyUser fetch logic to track if selfUser
and batch user gets are in progress, so that state updates from one do
not trigger re-fetches of the other.
Added ability to select friends from a <select> as invite target.
Need to fix some Sequelize relationships with groups -> group users.
Added invite validation.
Added try/catch statements to all friend/group/party service Feathers
calls.
All channels are now fetched together, which requires a semi-complicated
custom SQL query plus some additional population of user lists and user
avatars.
Need to add message patch + deletion.
Haven't tested parties.
It should scroll to the bottom of the active chat whenever the drawer
is opened.

Removed group-user front-end redux service. groupUsers and partyUsers
are now fetched as part of the group/party fetching process. Removed
all redux things associated with separate fetching of groupUsers,
partyUsers, and selfGroupUser/selfPartyUser. selfUser is now just
plucked from list of group/partyUsers.

Removed Chat/Friends/Groups/Invites/Parties from Profile since they're
all more or less working in their drawers.

Moved channel publications from top-level 'channels.ts' to the service
they're publishing for.

Added channel publications for group-user create/patch/remove. Need to
add it for parties, and for user updates.
propagating via channel updates.

Updated invite email invite button to say 'Accept invite'

Corrected onDelete: 'cascade' calls to use 'hooks': true, as that is
required for onDelete removal to be called.

Added a primary key id to user-relationship, removed PK of combined
'userId' and 'relatedUserId'.
Invite server-side updates working.
Turned on deleting of invite once it's accepted.
Removed console.log statements and ran through linter.
Message status system not yet implemented.
@barankyle barankyle merged commit b864d6c into dev Aug 4, 2020
@barankyle barankyle deleted the groups-chat branch August 4, 2020 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants