fix(data): sweep camera_photos cache dir on logout
The Android camera-capture flow in ChatInput writes temp photos to cacheDir/camera_photos/ but this subdir was missing from CACHE_SUBDIRECTORIES, so captured photos leaked across user sessions. Add it to the sweep list so CommonSessionCacheCleaner clears it on logout.
This commit is contained in:
parent
9e06c43096
commit
5b94495197
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ import co.touchlab.kermit.Logger
|
|||
/**
|
||||
* Subdirectories under the platform cache root that are cleared on logout.
|
||||
*/
|
||||
internal val CACHE_SUBDIRECTORIES = listOf("image_cache", "artifacts", "shared_images")
|
||||
internal val CACHE_SUBDIRECTORIES = listOf("image_cache", "artifacts", "shared_images", "camera_photos")
|
||||
|
||||
/**
|
||||
* Deletes a directory and all its contents at the given [path].
|
||||
|
|
|
|||
Loading…
Reference in a new issue