Commit 1035c3b5 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk

fix: file recording

Check if file was created before removing it.

Change-Id: I6671b07415db0922a69249e84bdb40fccda2cb58
parent 65594a4b
......@@ -177,6 +177,9 @@ class SendFileViewModel: Stateable, ViewModel {
}
self.videoService.videRecordingFinished()
recordingState.value = .sent
if fileName.isEmpty {
return
}
try? FileManager.default.removeItem(atPath: fileName)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment