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

Deferred DMs - Add and enable the feature by default in the labs settings #7180

Merged
merged 5 commits into from
Sep 21, 2022

Conversation

Florian14
Copy link
Contributor

Type of change

  • Feature
  • Bugfix
  • Technical
  • Other :

Content

Add the deferred DMs feature in the labs settings, enabled by default

Motivation and context

Release #5525

Screenshots / GIFs

image

Tests

  1. Play with the labs setting (default / disabled / enabled)
  2. Create a DM

Tested devices

  • Physical
  • Emulator
  • OS version(s):

Checklist

@Florian14 Florian14 force-pushed the feature/fre/deferred_dm_labs_flag branch from d74ae75 to fc997e1 Compare September 20, 2022 08:06
@Florian14 Florian14 added the Z-NextRelease For issues and PRs which should be included in the NextRelease. label Sep 20, 2022
@Florian14 Florian14 marked this pull request as ready for review September 20, 2022 08:08
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.

LGTM, 2 remarks though.

@@ -124,7 +124,7 @@ class CreateDirectRoomViewModel @AssistedInject constructor(
}

val result = runCatchingToAsync {
if (vectorFeatures.shouldStartDmOnFirstMessage()) {
if (vectorPreferences.isDeferredDmEnabled()) {
Copy link
Member

Choose a reason for hiding this comment

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

Just a remark as I am seeing this now: can you check that analytics will be sent when the room will be created?
If the feature is disabled, it's sent in the else block.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good remark, done fa8b56b
I did not find a better place to add it

@@ -37,6 +37,7 @@
<bool name="settings_ignored_users_visible">true</bool>

<!-- Level 1: Labs -->
<bool name="settings_labs_deferred_dm_default">true</bool>
Copy link
Member

Choose a reason for hiding this comment

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

See the doc at the top of this file, you should add another key with visible suffix:

<bool name="settings_labs_deferred_dm_visible">true</bool>

and use it in the labs pref file.
Maybe for this very temporary setting you could take this remark as optional.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done dd92bb7 but the "doc" at the beginning of the file does not tell that these fields are "mandatory", it's more a description of the naming convention.

Copy link
Member

Choose a reason for hiding this comment

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

OK, thanks 👐

@Florian14 Florian14 force-pushed the feature/fre/deferred_dm_labs_flag branch from 1ee1a3e to fa8b56b Compare September 21, 2022 07:36
@Florian14 Florian14 requested a review from bmarty September 21, 2022 07:44
@sonarqubecloud
Copy link

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

@bmarty bmarty merged commit d31d833 into develop Sep 21, 2022
@bmarty bmarty deleted the feature/fre/deferred_dm_labs_flag branch September 21, 2022 10:17
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.

2 participants