File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
app/src/main/java/org/session/libsession/avatars Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ class AvatarCacheCleaner @Inject constructor(
34
34
private suspend fun cleanUpAvatars (): Int = withContext(Dispatchers .IO ) {
35
35
// 1) Build the set of still-wanted Avatars from:
36
36
// -> Config
37
+ // -> Recipient Settings DB
37
38
38
39
// config
39
40
val avatarsFromConfig: Set <RemoteFile > = recipientAvatarDownloadManager.getAllAvatars()
@@ -60,11 +61,8 @@ class AvatarCacheCleaner @Inject constructor(
60
61
deleted
61
62
}
62
63
63
- fun launchAvatarCleanup (cancelInFlight : Boolean = false ) {
64
+ fun launchAvatarCleanup () {
64
65
coroutineScope.launch(Dispatchers .IO ) {
65
- if (cancelInFlight) {
66
- RemoteFileDownloadWorker .cancelAll(application)
67
- }
68
66
val deleted = cleanUpAvatars()
69
67
Log .d(TAG , " Avatar cache removed: $deleted files" )
70
68
}
You can’t perform that action at this time.
0 commit comments