Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions Sources/Support/AudioStoragePreferences.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,9 @@ enum AudioStoragePreferences {
userDefaults: UserDefaults = .standard
) {
userDefaults.set(window.rawValue, forKey: deleteAudioAfterKey)
NotificationCenter.default.post(name: .audioStoragePreferencesDidChange, object: nil)
}
}

extension Notification.Name {
static let audioStoragePreferencesDidChange = Notification.Name("audioStoragePreferencesDidChange")
}

/// How long a dictation's audio is kept after its transcript saves. Separate
/// from the meeting window: dictation audio defaults to 30 days so a take can
/// be played back or transcribed again, and the text is always kept.
Expand Down Expand Up @@ -124,6 +119,5 @@ extension AudioStoragePreferences {
userDefaults: UserDefaults = .standard
) {
userDefaults.set(window.rawValue, forKey: dictationAudioKeepKey)
NotificationCenter.default.post(name: .audioStoragePreferencesDidChange, object: nil)
}
}
Loading