diff --git a/src/helpers/AccountImageHelper.ts b/src/helpers/AccountImageHelper.ts index 66774aa..7062748 100644 --- a/src/helpers/AccountImageHelper.ts +++ b/src/helpers/AccountImageHelper.ts @@ -53,7 +53,10 @@ export class AccountImageHelper { // Delete meta file unlinkSync(this.GetPathMetadataFile(userID)); - // TODO : delete visiblity file (if any) + // Delete visiblity file (if any) + const visibilityFile = this.GetPathVisibilityFile(userID); + if(existsSync(visibilityFile)) + unlinkSync(visibilityFile); } }