-
Notifications
You must be signed in to change notification settings - Fork 226
change (preferences) : new moderation and safety settings #4574
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
change (preferences) : new moderation and safety settings #4574
Conversation
…d add new safety values
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #4574 +/- ##
===========================================
- Coverage 80.08% 80.07% -0.01%
===========================================
Files 2087 2088 +1
Lines 55121 55214 +93
Branches 6876 6889 +13
===========================================
+ Hits 44144 44213 +69
- Misses 8617 8633 +16
- Partials 2360 2368 +8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Thanks. A few minor remarks
@@ -385,13 +387,14 @@ private fun JoinRoomContent( | |||
Column(horizontalAlignment = Alignment.CenterHorizontally) { | |||
val inviteSender = (contentState.joinAuthorisationStatus as? JoinAuthorisationStatus.IsInvited)?.inviteSender | |||
if (inviteSender != null) { | |||
InviteSenderView(inviteSender = inviteSender) | |||
InviteSenderView(inviteSender = inviteSender, hideAvatarImage = shouldHideAvatars) |
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.
Instead of shouldHideAvatars
, why not using hideAvatarImage
? Should
has to be used when the behavior is optional.
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.
Should
first meaning is about obligation, not optionality, so this makes sense. But I can change if you really want.
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.
Are you sure? For obligation, we use Must
. But OK to keep it like that, not a big deal.
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.
Maybe use @PreviewWithLargeHeight
for this preview?
@@ -31,7 +32,8 @@ private val Context.dataStore: DataStore<Preferences> by preferencesDataStore(na | |||
private val developerModeKey = booleanPreferencesKey("developerMode") | |||
private val customElementCallBaseUrlKey = stringPreferencesKey("elementCallBaseUrl") | |||
private val themeKey = stringPreferencesKey("theme") | |||
private val hideImagesAndVideosKey = booleanPreferencesKey("hideImagesAndVideos") | |||
private val hideInviteAvatarsKey = booleanPreferencesKey("hideInviteAvatars") | |||
private val timelineMediaPreviewValueKey = stringPreferencesKey("timelineMediaPreviewValue") |
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.
Maybe create a AppMigration08
class to ensure that if previous key hideImagesAndVideos
was set to true, hideInviteAvatars
is set to true and timelineMediaPreviewValue
is set to Private
?
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.
We discussed this internally and we said to not bother with migration
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 a quick thing to do, but OK)
|
Content
Motivation and context
Closes #4436
Screenshots / GIFs
See recorded screenshots.
Tests
Tested devices
Checklist