Discard recording if time criteria not met

This commit is contained in:
relikd
2020-08-31 12:18:36 +02:00
parent 7b7c5f3d9a
commit ff4218981f
10 changed files with 106 additions and 58 deletions

View File

@@ -158,7 +158,7 @@ struct VPNAppMessage {
.init("notify-prefs-change:1")
}
/// Triggered whenever user taps on the start/stop recording button
static func isRecording(_ state: Bool) -> Self {
.init("recording-now:\(state ? 1 : 0)")
static func isRecording(_ state: CurrentRecordingState) -> Self {
.init("recording-now:\(state.rawValue)")
}
}