1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-25 14:59:22 +00:00

Can delete user account image

This commit is contained in:
Pierre HUBERT 2020-03-27 14:44:27 +01:00
parent 30740b8016
commit a6d201868b
2 changed files with 6 additions and 0 deletions

View File

@ -16,6 +16,7 @@ import { ConversationsHelper } from "./ConversationsHelper";
import { FriendsHelper } from "./FriendsHelper";
import { GroupsHelper } from "./GroupsHelper";
import { NotificationsHelper } from "./NotificationsHelper";
import { AccountImageHelper } from "./AccountImageHelper";
/**
* Account helper
@ -472,6 +473,9 @@ export class AccountHelper {
// Delete all user friends, including friendship requests
await FriendsHelper.DeleteAllUser(userID);
// Delete user account image
await AccountImageHelper.Delete(userID);
*/
// TODO : continue work

View File

@ -52,6 +52,8 @@ export class AccountImageHelper {
// Delete meta file
unlinkSync(this.GetPathMetadataFile(userID));
// TODO : delete visiblity file (if any)
}
}