|
@@ -3393,12 +3393,14 @@ class ViewController: NSViewController {
|
|
|
|
|
|
|
|
stack.setCustomSpacing(24, after: upgradeButton)
|
|
stack.setCustomSpacing(24, after: upgradeButton)
|
|
|
|
|
|
|
|
- let notificationsTitle = textLabel("Notifications", font: .systemFont(ofSize: 16, weight: .semibold), color: primaryText)
|
|
|
|
|
- stack.addArrangedSubview(notificationsTitle)
|
|
|
|
|
- let remindersSection = makeSettingsRemindersSection()
|
|
|
|
|
- stack.addArrangedSubview(remindersSection)
|
|
|
|
|
- remindersSection.widthAnchor.constraint(equalTo: stack.widthAnchor).isActive = true
|
|
|
|
|
- stack.setCustomSpacing(24, after: remindersSection)
|
|
|
|
|
|
|
+ if storeKitCoordinator.hasPremiumAccess {
|
|
|
|
|
+ let notificationsTitle = textLabel("Notifications", font: .systemFont(ofSize: 16, weight: .semibold), color: primaryText)
|
|
|
|
|
+ stack.addArrangedSubview(notificationsTitle)
|
|
|
|
|
+ let remindersSection = makeSettingsRemindersSection()
|
|
|
|
|
+ stack.addArrangedSubview(remindersSection)
|
|
|
|
|
+ remindersSection.widthAnchor.constraint(equalTo: stack.widthAnchor).isActive = true
|
|
|
|
|
+ stack.setCustomSpacing(24, after: remindersSection)
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
let legalTitle = textLabel("Help & Legal", font: .systemFont(ofSize: 16, weight: .semibold), color: primaryText)
|
|
let legalTitle = textLabel("Help & Legal", font: .systemFont(ofSize: 16, weight: .semibold), color: primaryText)
|
|
|
stack.addArrangedSubview(legalTitle)
|
|
stack.addArrangedSubview(legalTitle)
|
|
@@ -3755,6 +3757,7 @@ class ViewController: NSViewController {
|
|
|
self.schedulePremiumRatingPromptIfNeeded()
|
|
self.schedulePremiumRatingPromptIfNeeded()
|
|
|
}
|
|
}
|
|
|
if wasPremium && !newIsPremium {
|
|
if wasPremium && !newIsPremium {
|
|
|
|
|
+ self.cancelAllMeetingReminders()
|
|
|
self.premiumRatingPromptWorkItem?.cancel()
|
|
self.premiumRatingPromptWorkItem?.cancel()
|
|
|
self.premiumRatingPromptWorkItem = nil
|
|
self.premiumRatingPromptWorkItem = nil
|
|
|
self.showPaywall()
|
|
self.showPaywall()
|
|
@@ -3932,6 +3935,10 @@ class ViewController: NSViewController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private func rescheduleMeetingRemindersIfNeeded() {
|
|
private func rescheduleMeetingRemindersIfNeeded() {
|
|
|
|
|
+ guard storeKitCoordinator.hasPremiumAccess else {
|
|
|
|
|
+ cancelAllMeetingReminders()
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
guard remindersEnabled else {
|
|
guard remindersEnabled else {
|
|
|
cancelAllMeetingReminders()
|
|
cancelAllMeetingReminders()
|
|
|
return
|
|
return
|