Skip to content

Per room block unverified devices #6726

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

Merged
merged 7 commits into from
Oct 5, 2022
Merged

Conversation

BillCarsonFr
Copy link
Member

@BillCarsonFr BillCarsonFr commented Aug 3, 2022

Type of change

  • Other : Parity with web

Fixes #6725

Content

Adds the option to only send keys to verified devices per room. The setting was ready in SDK but just not exposed in UI.

Also added UI feedback when the option is on in global settings.

Motivation and context

Screenshots / GIFs

Per room setting off Per room setting on
image image
Global Blacklist on and unverified devices in room Global blacklist on all is ok
image image

Tested devices

  • Physical
  • Emulator
  • OS version(s):

Checklist

@BillCarsonFr BillCarsonFr requested review from a team and Claire1817 and removed request for a team August 3, 2022 12:37
@BillCarsonFr BillCarsonFr force-pushed the feature/bca/block_unverified branch 2 times, most recently from 75ae1f5 to ec3462b Compare October 3, 2022 07:21
@BillCarsonFr BillCarsonFr added the Z-NextRelease For issues and PRs which should be included in the NextRelease. label Oct 3, 2022
@bmarty bmarty removed the request for review from Claire1817 October 3, 2022 12:25
Copy link
Member

@bmarty bmarty left a comment

Choose a reason for hiding this comment

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

Thanks. Some remarks, I do not think there are anything blocking though.

val canUpgradeToRestricted: Boolean = false,
val encryptToVerifiedDeviceOnly: Async<Boolean> = Uninitialized,
val globalCryptoConfig: Async<GlobalCryptoConfig> = Uninitialized,
val unverifiedDevicesInTheRoom: Async<Boolean> = Uninitialized,
Copy link
Member

Choose a reason for hiding this comment

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

Maybe this is not necessary to use Async type for those 3 new fields. Not a blocker though.

@BillCarsonFr BillCarsonFr force-pushed the feature/bca/block_unverified branch from e471900 to e92a047 Compare October 4, 2022 15:17
Copy link
Member

@bmarty bmarty left a comment

Choose a reason for hiding this comment

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

Thanks for the update.

// }
// }
// }
// }
Copy link
Member

Choose a reason for hiding this comment

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

All the commented out block could be removed.

@BillCarsonFr BillCarsonFr force-pushed the feature/bca/block_unverified branch from 680e0f4 to b567fc5 Compare October 5, 2022 08:27
@@ -7,6 +7,8 @@
android:background="?android:colorBackground"

Choose a reason for hiding this comment

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

  • ⚠️ Possible overdraw: Root element paints background ?android:colorBackground with a theme that also paints a background (inferred theme is @android:style/Theme.Holo)
  • ⚠️ Possible overdraw: Root element paints background ?android:colorBackground with a theme that also paints a background (inferred theme is @android:style/Theme.Holo)

@@ -7,6 +7,8 @@
android:background="?android:colorBackground"
android:foreground="?attr/selectableItemBackground"

Choose a reason for hiding this comment

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

  • ⚠️ Attribute android:foreground has no effect on API levels lower than 23 (current min is 21)
  • ⚠️ Attribute android:foreground has no effect on API levels lower than 23 (current min is 21)

@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 5, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@BillCarsonFr BillCarsonFr merged commit ec7c8c8 into develop Oct 5, 2022
@BillCarsonFr BillCarsonFr deleted the feature/bca/block_unverified branch October 5, 2022 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Z-NextRelease For issues and PRs which should be included in the NextRelease.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parity with Web | Add option to only send to verified device per room
4 participants