From b69b93a9d95c7c22f1efd27f027ab18e40c31f27 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 27 Mar 2020 14:57:05 +0100 Subject: [PATCH] Add placeholder to delete legacy background image --- src/helpers/AccountHelper.ts | 6 +++++- src/helpers/BackgroundImageHelper.ts | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/helpers/AccountHelper.ts b/src/helpers/AccountHelper.ts index 2ea487e..a527ced 100644 --- a/src/helpers/AccountHelper.ts +++ b/src/helpers/AccountHelper.ts @@ -17,6 +17,7 @@ import { FriendsHelper } from "./FriendsHelper"; import { GroupsHelper } from "./GroupsHelper"; import { NotificationsHelper } from "./NotificationsHelper"; import { AccountImageHelper } from "./AccountImageHelper"; +import { BackgroundImageHelper } from "./BackgroundImageHelper"; /** * Account helper @@ -479,8 +480,11 @@ export class AccountHelper { // Delete all the likes on the user page await LikesHelper.DeleteAll(userID, LikesType.USER); - */ + // Delete user background image + await BackgroundImageHelper.Delete(userID); + */ + // TODO : continue work } diff --git a/src/helpers/BackgroundImageHelper.ts b/src/helpers/BackgroundImageHelper.ts index 8d4614f..ef91dcc 100644 --- a/src/helpers/BackgroundImageHelper.ts +++ b/src/helpers/BackgroundImageHelper.ts @@ -13,4 +13,8 @@ export class BackgroundImageHelper { return pathUserData("imgfond/0.jpg"); } + public static async Delete(userID: number) { + // Currently, it is not planned to integrate background image anymore + } + } \ No newline at end of file