-
Notifications
You must be signed in to change notification settings - Fork 79
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
Community encryption should automatically switch on/off depending on community permissions #9942
Community encryption should automatically switch on/off depending on community permissions #9942
Comments
Have a questions
If yes, then:
If the encryption mode can be changed after the community creation: |
@cammellos Maybe you know the answer: |
@mprakhov in theory it should work, we need to create an endpoint probably to toggle encryption on & off, but the first step would be to check whether it works after encryption has been toggled, let me know if we should help with that |
@cammellos if you have a possibility, I would appreciate the help |
@Samyoul could you please look into this? They need an endpoint to toggle community encryption (it should be enough to set |
Np @cammellos . I will add a new API endpoint with a method doing something like below: SetCommunityEncryption(CommunityID string, usesEncryption bool) error {
// Get Community
// Check usesEncryption is different to Community's value
// If not different return
// if usesEncryption true:
// 🪄 The magic that encrypts a community
// Else:
// 🧙 The magic that decrypts a community
// Republish the community.
} |
@Samyoul could you please give some updates on where an API will be ready and merged? |
@mprakhov This is the PR status-im/status-go#3417 . I'm adding tests and it'll be ready for review. So hopefully can be merged today / Monday |
@John-44 @benjthayer could u please guys help me clarifying the following: do we show / indicate anywhere that community is encrypted? I found only this place (screenshot below) Since we removing this checkbox completely - do we want to highlight that community is encrypted and if yes, in which cases and where in UI? Sorry if this has been clarified before, i was not able to find the designs myself :( |
Hey @anastasiyaig I wasn't involved in the discussions around removing the checkbox so will leave for @John-44 to confirm :) |
We don't want to explicitly say a community is encrypted or not anywhere in the UI. What we do want to say is if a community is "token gated or not", or if a channel is "token gated or not" with the implication that if it is token gated then it's encrypted, if it's not token gated then it's not encrypted |
This is a feature for the 0.12 release
-- Change request --
remove the "Encrypt community" toggle from the "Create community" and "Edit community" screens
If the community is an open community (e.g. there are no token permissions to become a member at the community level) then community encryption should automatically be Off
If a community is a closed community (e.g. there are token permissions to become a member at the community level) then community encryption should automatically be On
If an open community becomes a closed community (e.g. if a token permission to become a member at the community level is added) than community encryption should automatically be switched On
If a closed community becomes an open community (e.g. if all token permissions to become a member at the community level are deleted) then community encryption should automatically be switched Off
cc'ing @iurimatias @jrainville
The text was updated successfully, but these errors were encountered: