From 012115b3309a52052f0b2a935359e751b7fd77c0 Mon Sep 17 00:00:00 2001 From: JRoberts <8711996+jr-simplex@users.noreply.github.com> Date: Tue, 20 Sep 2022 12:35:25 +0400 Subject: [PATCH] ios: disable files deletion unless chat is stopped (#1074) --- apps/ios/Shared/Views/Database/DatabaseView.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/ios/Shared/Views/Database/DatabaseView.swift b/apps/ios/Shared/Views/Database/DatabaseView.swift index cc677f0161..296fa6cbd2 100644 --- a/apps/ios/Shared/Views/Database/DatabaseView.swift +++ b/apps/ios/Shared/Views/Database/DatabaseView.swift @@ -166,6 +166,7 @@ struct DatabaseView: View { } } } + .disabled(!stopped || appFilesCountAndSize?.0 == 0) } .onAppear { runChat = m.chatRunning ?? true