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:
parent
30740b8016
commit
a6d201868b
@ -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
|
||||||
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user