Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Refactor Group Chats#772

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
SamShanks1 wants to merge23 commits intoproject-error:master
base:master
Choose a base branch
Loading
fromSamShanks1:master

Conversation

@SamShanks1
Copy link
Contributor

@SamShanks1SamShanks1 commentedJun 6, 2022
edited
Loading

Pull Request Description
A full rework of the group system

Feature Specs:

  • Group Avatar
  • Leave group chats
  • Add to group chats
  • Edit group chat name

Tasks Progress:

  • Leave Groups
  • Add to groups
  • Remove people from groups
  • Store who created groups
  • Change group name
  • Group avatar with edit
  • System messages (join/leave/add)
  • If owner leaves then assign someone else owner (first in participant list)

Preview

The following SQL needs to be ran

ALTERTABLE npwd_messages ADD COLUMN`is_system`tinyint(4)NOT NULL DEFAULT0;ALTERTABLE npwd_messages ADD COLUMN`system_type`varchar(48)NOT NULL DEFAULT'';ALTERTABLE npwd_messages ADD COLUMN`system_number`varchar(48)NOT NULL DEFAULT'';ALTERTABLE npwd_messages_conversations ADD COLUMN`owner`varchar(48)NOT NULL DEFAULT'';

#610

Pull Request Checklist:

  • Have you followed the guidelines in our Contributing document and Code of Conduct?
  • Have you checked to ensure there aren't other openPull Requests for the same update/change?
  • Have you built and tested NPWD in-game after the relevant change?

@SamShanks1
Copy link
ContributorAuthor

One problem I just thought about will be groups that were created before this and don't have the "createdBy" defined, I could make it so any groups that don't have that will allow any member to remove another member. I also don't know if any errors will be created if "createdBy" is left blank

@itschipitschip self-assigned thisJun 6, 2022
@itschipitschip added Awaiting Code ReviewAwaiting code review. Awaiting TestingAwaiting in-game testing. labelsJun 6, 2022
@SamShanks1
Copy link
ContributorAuthor

Tested with no createBy date, everything still works however no one can remove people (may add it so everyone can remove in the future). Also just added leaving groups

@SamShanks1SamShanks1 changed the titlefeat(messages): Remove Members from groupsfeat(messages): Remove Members & Leave GroupsJun 6, 2022
Copy link
Collaborator

@LiamDormonLiamDormon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Looks good so far, only issue I have is that members cannot re-join a group and a few minor things

Copy link
Contributor

@TasoOneAsiaTasoOneAsia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

There are a couple small things I noticed that might need some cleanup but all in all good work, thank you for the PR :)

@TasoOneAsia
Copy link
Contributor

Also appears CI is failing for the frontend due to a couple small ESLint complaints.

Screen Shot 2022-06-09 at 9 30 59 PM

@SamShanks1
Copy link
ContributorAuthor

Just need to do some last testing but this should be finished, @Mojito-Fivem would you prefer I do a separate PR for adding members to groups or keep it here

@LiamDormon
Copy link
Collaborator

It's all under the same feature and I think it would create more issues having this without the adding members functionality

SamShanks1 reacted with thumbs up emoji

@SamShanks1SamShanks1 marked this pull request as draftJune 11, 2022 00:06
@SamShanks1
Copy link
ContributorAuthor

SamShanks1 commentedJun 11, 2022
edited
Loading

Added system messages

Preview

The following SQL is now needed (added to the original message)

ALTERTABLE npwd_messages ADD COLUMN`is_system`tinyint(4)NOT NULL DEFAULT0;ALTERTABLE npwd_messages ADD COLUMN`system_type`varchar(48)NOT NULL DEFAULT'';ALTERTABLE npwd_messages ADD COLUMN`system_number`varchar(48)NOT NULL DEFAULT'';

@SamShanks1SamShanks1 changed the titlefeat(messages): Remove Members & Leave GroupsRefactor Group ChatsJun 12, 2022
@itschipitschip assignedSamShanks1 and unassigneditschipAug 28, 2022
@AlamoRoleplayFiveM
Copy link

Will there not be any chance of group calling?

@stale
Copy link

stalebot commentedMar 7, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stalestalebot added the wontfix labelMar 7, 2023
@TonybynMp4
Copy link
Contributor

this needs to be revived 😢

@MrWWee
Copy link

i have an idea. the owner can close the chat and only the owner him self can send message, or create a bol for chat user that can send message to chat.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@itschipitschipitschip left review comments

@TasoOneAsiaTasoOneAsiaTasoOneAsia requested changes

@LiamDormonLiamDormonLiamDormon requested changes

Assignees

@SamShanks1SamShanks1

Labels

Awaiting Code ReviewAwaiting code review.Awaiting TestingAwaiting in-game testing.wontfix

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

7 participants

@SamShanks1@TasoOneAsia@LiamDormon@AlamoRoleplayFiveM@TonybynMp4@MrWWee@itschip

[8]ページ先頭

©2009-2025 Movatter.jp