From 04e56638ce6d861ab1085c9e6b85504a6148e7a8 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sun, 15 Oct 2023 00:29:09 +0200 Subject: [PATCH] Fix possible crash --- Model/Video.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Model/Video.swift b/Model/Video.swift index 79d7c553..2eb32c58 100644 --- a/Model/Video.swift +++ b/Model/Video.swift @@ -290,8 +290,8 @@ struct Video: Identifiable, Equatable, Hashable { } var localStreamIsFile: Bool { - guard let localStream else { return false } - return localStream.localURL.isFileURL + guard let url = localStream?.localURL else { return false } + return url.isFileURL } var localStreamIsRemoteURL: Bool {