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:
Garfie 2026-04-14 18:11:48 -05:00
parent 9e06c43096
commit 5b94495197

View file

@ -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].