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

Add new member after typing message and pressing enter #17014

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jrainville
Copy link
Member

What does the PR do

Fixes #8349

When the member selector menu is open, sending a message adds/removes the members and then sends the message. Therefore, the new member will also receive the message.

The first commit is just a cleanup of code taht is never used

Affected areas

Group chat member selection (for existing chat)

Architecture compliance

Screenshot of functionality (including design for comparison)

add-remove-members.webm

Impact on end user

Enables the user to add or remove members more easily

How to test

  1. Have a group channel
  2. Open the "add/remove members" menu
  3. add a member (don't press Confirm)
  4. Enter a message
  5. Press Enter
  6. See that the member is added and they received the message
  7. Reopen the menu
  8. Remove the user (don't press confirm again)
  9. Send another message
  10. The user is removed and they don't receive the message

Also, using the Confirm as before works as usual

Risk

Tick one:

  • Low risk: 2 devs MUST perform testing as specified above and attach their results as comments to this PR before merging.
  • High risk: QA team MUST perform additional testing in the specified affected areas before merging.

Worst case the new feature doesn't work

@jrainville jrainville requested review from micieslak, caybro, alexjba and a team as code owners December 30, 2024 18:54
@status-im-auto
Copy link
Member

status-im-auto commented Dec 30, 2024

Jenkins Builds

Click to see older builds (7)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 0487ddc #1 2024-12-30 19:00:52 ~6 min macos/aarch64 🍎dmg
✔️ 0487ddc #1 2024-12-30 19:02:45 ~8 min tests/nim 📄log
✔️ 0487ddc #1 2024-12-30 19:07:28 ~13 min tests/ui 📄log
✔️ 0487ddc #1 2024-12-30 19:10:23 ~16 min linux-nix/x86_64 📦tgz
✔️ 0487ddc #1 2024-12-30 19:10:38 ~16 min macos/x86_64 🍎dmg
✔️ 0487ddc #1 2024-12-30 19:18:47 ~24 min linux/x86_64 📦tgz
✔️ 0487ddc #1 2024-12-30 19:23:52 ~29 min windows/x86_64 💿exe
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 3fb89d6 #2 2024-12-31 15:20:45 ~7 min macos/aarch64 🍎dmg
✔️ 3fb89d6 #2 2024-12-31 15:21:32 ~8 min tests/nim 📄log
✔️ 3fb89d6 #2 2024-12-31 15:24:40 ~11 min macos/x86_64 🍎dmg
✔️ 3fb89d6 #2 2024-12-31 15:26:09 ~12 min tests/ui 📄log
✔️ 3fb89d6 #2 2024-12-31 15:26:18 ~13 min linux-nix/x86_64 📦tgz
✔️ 3fb89d6 #2 2024-12-31 15:35:46 ~22 min linux/x86_64 📦tgz
✔️ 3fb89d6 #2 2024-12-31 15:39:18 ~25 min windows/x86_64 💿exe
✔️ 0702919 #3 2025-01-03 14:35:24 ~4 min macos/aarch64 🍎dmg
✔️ 0702919 #3 2025-01-03 14:38:26 ~7 min tests/nim 📄log
✔️ 0702919 #3 2025-01-03 14:42:21 ~11 min macos/x86_64 🍎dmg
✔️ 0702919 #3 2025-01-03 14:43:09 ~12 min tests/ui 📄log
✔️ 0702919 #3 2025-01-03 14:44:49 ~14 min linux-nix/x86_64 📦tgz
✔️ 0702919 #3 2025-01-03 14:48:43 ~18 min linux/x86_64 📦tgz
✔️ 0702919 #3 2025-01-03 14:56:47 ~26 min windows/x86_64 💿exe

@jrainville jrainville force-pushed the feat/group-chat-add-member-improvement branch from 0487ddc to 3fb89d6 Compare December 31, 2024 15:12
ui/app/AppLayouts/Chat/views/ChatView.qml Outdated Show resolved Hide resolved
@@ -291,6 +292,12 @@ StatusSectionLayout {
amISectionAdmin: root.amISectionAdmin
sendViaPersonalChatEnabled: root.sendViaPersonalChatEnabled
paymentRequestFeatureEnabled: root.paymentRequestFeatureEnabled
selectingMembers: headerContentLoader.item && !!headerContentLoader.item.selectingMembers
onGroupUpdated: {
if (headerContentLoader.item && headerContentLoader.item instanceof ChatHeaderContentView) {
Copy link
Member

Choose a reason for hiding this comment

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

This seems somewhat odd... to rely on the concrete underlying type of the component; but I don't really have a better idea atm 🤷

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, it was either that or doing !!headerContentLoader.item.groupUpdated. It's as you prefer

Fixes #8349

When the member selector menu is open, sending a message adds/removes the members and then sends the message. Therefore, the new member will also receive the message.
@jrainville jrainville force-pushed the feat/group-chat-add-member-improvement branch from 3fb89d6 to 0702919 Compare January 3, 2025 14:30
@jrainville
Copy link
Member Author

@alexjba @micieslak friendly reminder to review

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.

[Group chat] Add new member after typing message and pressing enter
3 participants