Skip to content

Commit

Permalink
Merge pull request #20970 from wordpress-mobile/bug/blogging-reminder…
Browse files Browse the repository at this point in the history
…s-capability

Blogging Reminders: Don't show prompt if not allowed for blog
  • Loading branch information
twstokes authored Jun 29, 2023
2 parents 0e577f4 + 2988968 commit e98d963
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
22.8
-----
* [*] Blogging Reminders: Disabled prompt for self-hosted sites not connected to Jetpack. [#20970]
* [**] [internal] Do not save synced blogs if the app has signed out. [#20959]
* [**] [internal] Make sure synced posts are saved before calling completion block. [#20960]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class BloggingRemindersFlow {
delegate: BloggingRemindersFlowDelegate? = nil,
onDismiss: DismissClosure? = nil) {

guard Feature.enabled(.bloggingReminders) && JetpackNotificationMigrationService.shared.shouldPresentNotifications() else {
guard blog.areBloggingRemindersAllowed() else {
return
}

Expand Down

0 comments on commit e98d963

Please sign in to comment.