-
Notifications
You must be signed in to change notification settings - Fork 985
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
Display private permissions only when the requirements are met #19675
Conversation
Jenkins BuildsClick to see older builds (26)
|
src/status_im/subs/communities.cljs
Outdated
(defn visible-criteria | ||
[criteria] | ||
(filter (fn [{:keys [isPrivate criteria]}] | ||
(or (not isPrivate) (every? identity criteria))) | ||
criteria)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's very confusing that we have the argument name and the destructured name the same.
criteria
can be destructured differently.
src/status_im/subs/communities.cljs
Outdated
(defn visible-criteria | ||
[criteria] | ||
(filter (fn [{:keys [isPrivate criteria]}] | ||
(or (not isPrivate) (every? identity criteria))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not?
(every? true? [...])
fbe92ee
to
c8673f1
Compare
96% of end-end tests have passed
Expected to fail tests (2)Click to expandClass TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityOneDeviceMerged:
Passed tests (50)Click to expandClass TestWalletMultipleDevice:
Class TestActivityMultipleDevicePR:
Class TestWalletOneDevice:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityMultipleDeviceMerged:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestCommunityOneDeviceMerged:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestActivityMultipleDevicePRTwo:
Class TestDeepLinksOneDevice:
|
@ajayesivan thanks for the PR! could you please rebase go and mobile branches? thanks. |
Also, please add status-go label to PRs which contain changes on go side. |
c8673f1
to
d5fa5c0
Compare
@pavloburykh I have rebased both go & mobile branches |
@ajayesivan thank you for the PR! LGTM on Android. |
d5fa5c0
to
1afc747
Compare
fixes #19606
status-go pr: status-im/status-go#5059
Hide private permissions when they are not satisfied.
In the below community member permissions, the second and last permissions are private. So those permissions should only be displayed to the user when the user holds the required tokens.
Community overview screen
Non-member permissions are always private
Community permissions sheet
Areas affected
status: ready