1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-22 13:29: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 { FriendsHelper } from "./FriendsHelper";
import { GroupsHelper } from "./GroupsHelper"; import { GroupsHelper } from "./GroupsHelper";
import { NotificationsHelper } from "./NotificationsHelper"; import { NotificationsHelper } from "./NotificationsHelper";
import { AccountImageHelper } from "./AccountImageHelper";
/** /**
* Account helper * Account helper
@ -472,6 +473,9 @@ export class AccountHelper {
// Delete all user friends, including friendship requests // Delete all user friends, including friendship requests
await FriendsHelper.DeleteAllUser(userID); await FriendsHelper.DeleteAllUser(userID);
// Delete user account image
await AccountImageHelper.Delete(userID);
*/ */
// TODO : continue work // TODO : continue work

View File

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