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:
parent
30740b8016
commit
a6d201868b
@ -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
|
||||
|
@ -52,6 +52,8 @@ export class AccountImageHelper {
|
||||
|
||||
// Delete meta file
|
||||
unlinkSync(this.GetPathMetadataFile(userID));
|
||||
|
||||
// TODO : delete visiblity file (if any)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user