Skip to content

Commit

Permalink
Merge pull request #19735 from wordpress-mobile/task/disable-prevent-…
Browse files Browse the repository at this point in the history
…notifications

[Jetpack Focus] Revert Jetpack Notifications Disabling Feature Flag and Release Notes
  • Loading branch information
twstokes authored Dec 6, 2022
2 parents 27964b2 + 75c637f commit fa14718
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

21.3
-----
* [*] [internal] When a user migrates to the Jetpack app and allows notifications, WordPress app notifications are disabled. This is released disabled and is behind a feature flag. [#19616, #19611, #19590]
* [*] Fixed a minor UI issue where the segmented control under My SIte was being clipped when "Home" is selected. [#19595]
* [*] Fixed an issue where the site wasn't removed and the app wasn't refreshed after disconnecting the site from WordPress.com. [#19634]
* [*] [internal] Fixed an issue where Jetpack extensions were conflicting with WordPress extensions. [#19665]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ final class JetpackNotificationMigrationService: JetpackNotificationMigrationSer
private let jetpackNotificationMigrationDefaultsKey = "jetpackNotificationMigrationDefaultsKey"

private var jetpackMigrationPreventDuplicateNotifications: Bool {
return featureFlagStore.value(for: FeatureFlag.jetpackMigrationPreventDuplicateNotifications)
return FeatureFlag.jetpackMigrationPreventDuplicateNotifications.enabled
}

var wordPressNotificationsEnabled: Bool {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ enum FeatureFlag: Int, CaseIterable, OverrideableFlag {
case .newCoreDataContext:
return true
case .jetpackMigrationPreventDuplicateNotifications:
return true
return false
case .jetpackFeaturesRemovalPhaseOne:
return false
case .jetpackFeaturesRemovalPhaseTwo:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,11 @@ private class RemoteNotificationRegisterMock: RemoteNotificationRegister {
}

private class RemoteFeatureFlagStoreMock: RemoteFeatureFlagStore {
var value = false
var value = false {
didSet {
try? FeatureFlagOverrideStore().override(FeatureFlag.jetpackMigrationPreventDuplicateNotifications, withValue: value)
}
}

override func value(for flag: OverrideableFlag) -> Bool {
return value
Expand Down

0 comments on commit fa14718

Please sign in to comment.