We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8f1b75 commit 8753035Copy full SHA for 8753035
Signal/AppLaunch/AppEnvironment.swift
@@ -179,7 +179,7 @@ public class AppEnvironment: NSObject {
179
}
180
181
Task {
182
- self.avatarHistoryManager.cleanupOrphanedImages()
+ await self.avatarHistoryManager.cleanupOrphanedImages()
183
184
185
Signal/Avatars/AvatarHistoryManager.swift
@@ -42,9 +42,7 @@ class AvatarHistoryManager {
42
)
43
44
45
- func cleanupOrphanedImages() {
46
- owsAssertDebug(!Thread.isMainThread)
47
-
+ func cleanupOrphanedImages() async {
48
guard OWSFileSystem.fileOrFolderExists(url: imageHistoryDirectory) else { return }
49
50
let allRecords: [[AvatarRecord]] = db.read { tx in
0 commit comments