Merge pull request #951 from permissionlesstech/fix/main-actor-isolation-snapshots

Fix main actor isolation error in clearAppSwitcherSnapshots
This commit is contained in:
jack 2026-01-12 16:11:40 -10:00 committed by GitHub
commit ebb5bb6558
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2072,7 +2072,7 @@ final class ChatViewModel: ObservableObject, BitchatDelegate, CommandContextProv
/// iOS stores preview screenshots in Library/Caches/Snapshots/<bundle_id>/
/// These could reveal sensitive information visible in the app at the time
#if os(iOS)
private static func clearAppSwitcherSnapshots() {
private nonisolated static func clearAppSwitcherSnapshots() {
do {
let cacheDir = try FileManager.default.url(for: .cachesDirectory, in: .userDomainMask, appropriateFor: nil, create: false)
let snapshotsDir = cacheDir.appendingPathComponent("Snapshots", isDirectory: true)