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

Fix context menus not updating when blocking/unblocking or when getting a CR #16978

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

Conversation

jrainville
Copy link
Member

@jrainville jrainville commented Dec 17, 2024

What does the PR do

Fixes #16948 and #16952

The problem was that we just didn't pass isBlocked to the Item. So either it never worked or we broke it during the refactors.

We also didn't have updates when the events were called in the main module.

Same thing for the contactRequest

Affected areas

Member list in the admin panel and on the right bar of a community.

Screenshot of functionality (including design for comparison)

Block/unblock:

block-unblock.webm

CR:

contact-request-context-menu.webm

Impact on end user

Fixes the issue of missing updates

How to test

  • Block and unblock a user and check the different member lists
  • Send a contact request to the user and check the member lists

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 issue still happens

@jrainville jrainville requested a review from a team as a code owner December 17, 2024 19:18
@jrainville jrainville requested review from richard-ramos, a team, iurimatias and osmaczko and removed request for a team December 17, 2024 19:18
@jrainville jrainville force-pushed the fix/block-user-update branch from 4ac3209 to ee5a83f Compare December 17, 2024 19:19
@status-im-auto
Copy link
Member

status-im-auto commented Dec 17, 2024

Jenkins Builds

Click to see older builds (7)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ ee5a83f #2 2024-12-17 19:27:29 ~7 min macos/aarch64 🍎dmg
✖️ ee5a83f #2 2024-12-17 19:28:08 ~8 min tests/nim 📄log
✔️ ee5a83f #2 2024-12-17 19:30:38 ~10 min tests/ui 📄log
✔️ ee5a83f #2 2024-12-17 19:36:09 ~16 min linux-nix/x86_64 📦tgz
✔️ ee5a83f #2 2024-12-17 19:36:50 ~16 min macos/x86_64 🍎dmg
✔️ ee5a83f #2 2024-12-17 19:37:50 ~18 min linux/x86_64 📦tgz
✔️ ee5a83f #2 2024-12-17 19:44:25 ~24 min windows/x86_64 💿exe
Commit #️⃣ Finished (UTC) Duration Platform Result
✖️ c386920 #4 2024-12-17 20:21:14 ~7 min tests/nim 📄log
✔️ c386920 #4 2024-12-17 20:22:14 ~8 min macos/aarch64 🍎dmg
✔️ be285b3 #5 2024-12-17 20:28:42 ~6 min macos/aarch64 🍎dmg
✔️ be285b3 #5 2024-12-17 20:29:34 ~7 min tests/nim 📄log
✔️ be285b3 #5 2024-12-17 20:33:42 ~11 min tests/ui 📄log
✔️ be285b3 #5 2024-12-17 20:36:43 ~14 min linux-nix/x86_64 📦tgz
✔️ be285b3 #5 2024-12-17 20:39:55 ~17 min linux/x86_64 📦tgz
✔️ be285b3 #5 2024-12-17 20:40:55 ~18 min macos/x86_64 🍎dmg
✔️ be285b3 #5 2024-12-17 20:46:32 ~24 min windows/x86_64 💿exe

isContact,
trustStatus,
)

Copy link
Member Author

Choose a reason for hiding this comment

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

This was never used

Base automatically changed from fix/block-user-deletes-messages to master December 17, 2024 20:13
@jrainville jrainville changed the title fix(block): fix context menus not updating when blocking/unblocking Fix context menus not updating when blocking/unblocking or when getting a CR Dec 17, 2024
@jrainville jrainville force-pushed the fix/block-user-update branch from c386920 to be285b3 Compare December 17, 2024 20:22
Copy link
Member

@caybro caybro left a comment

Choose a reason for hiding this comment

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

Code LGTM

The problem was that we just didn't pass isBlocked to the Item. So either it never worked or we broke it during the refactors.

But can't find this place in the diff here :)

@jrainville
Copy link
Member Author

Code LGTM

The problem was that we just didn't pass isBlocked to the Item. So either it never worked or we broke it during the refactors.

But can't find this place in the diff here :)

Here https://github.com/status-im/status-desktop/pull/16978/files#diff-7638828ebe375b5677d6a6832e1d28dce5ac5551923d8995eba39c9dc272d59fR154
and
here https://github.com/status-im/status-desktop/pull/16978/files#diff-4bed854dbe31f65c7442333fb41ea04c6f79c8b1d1129449eebc6f9bbadbca0eR1897

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.

“Block user” remains in context menu after block
4 participants