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: Hide members count from community cards when the community is en… #14538

Conversation

alexjba
Copy link
Contributor

@alexjba alexjba commented Apr 29, 2024

…crypted and the community info is not available

What does the PR do

closes #13192

Changes:

  1. Adding encrypted and joined flags in the link preview model and curated communities model
  2. Hide the members count in community cards for encrypted communities when the user is not a member
  3. Fixing a bug on community cards where sometimes the card had artefacts due to improper width

Affected areas

Link previews
Communities portal

Screenshot of functionality (including design for comparison)

Screen.Recording.2024-04-29.at.14.59.25.mov

Cool Spaceship Picture

…crypted and the community info is not available
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.

LGTM 👍


proc getEncrypted*(self: CuratedCommunityItem): bool =
return self.encrypted
Copy link
Member

Choose a reason for hiding this comment

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

You can omit the return keyword

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's more or less inline with the style used in each file. Here is return self.x, in src/app_service/service/message/dto/status_community_link_preview.nim is something like result = self.x

@status-im-auto
Copy link
Member

status-im-auto commented Apr 29, 2024

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ feea4b4 #1 2024-04-29 12:20:30 ~6 min macos/aarch64 🍎dmg
✔️ feea4b4 #1 2024-04-29 12:21:07 ~7 min tests/nim 📄log
✔️ feea4b4 #1 2024-04-29 12:25:27 ~11 min tests/ui 📄log
✔️ feea4b4 #1 2024-04-29 12:25:42 ~11 min macos/x86_64 🍎dmg
✔️ feea4b4 #1 2024-04-29 12:32:00 ~18 min linux/x86_64 📦tgz
✔️ feea4b4 #1 2024-04-29 12:43:56 ~30 min windows/x86_64 💿exe

@alexjba alexjba merged commit 85066fc into master Apr 30, 2024
8 checks passed
@alexjba alexjba deleted the 13192-dont-display-number-of-members-for-token-gated-communities-on-previews branch April 30, 2024 11:03
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.

Don't display number of members for token-gated communities on previews
4 participants