summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-08-21 12:41:56 +0900
committerGitHub <noreply@github.com>2021-08-21 12:41:56 +0900
commitfd1ef4a62d670aab5f0c0089ab3806639c779813 (patch)
tree0a13e5827e0a45dcc9aa592ea09a968369ff0058 /src/client
parentfix bug (diff)
downloadmisskey-fd1ef4a62d670aab5f0c0089ab3806639c779813.tar.gz
misskey-fd1ef4a62d670aab5f0c0089ab3806639c779813.tar.bz2
misskey-fd1ef4a62d670aab5f0c0089ab3806639c779813.zip
enhance(server): Use job queue for account delete (#7668)
* enhance(server): Use job queue for account delete Fix #5336 * ジョブをひとつに * remove done call * clean up * add User.isDeleted * コミット忘れ * Update 1629512953000-user-is-deleted.ts * show dialog * lint * Update 1629512953000-user-is-deleted.ts
Diffstat (limited to 'src/client')
-rw-r--r--src/client/account.ts1
-rw-r--r--src/client/init.ts7
2 files changed, 8 insertions, 0 deletions
diff --git a/src/client/account.ts b/src/client/account.ts
index 7cd3d8cb88..ee1d845493 100644
--- a/src/client/account.ts
+++ b/src/client/account.ts
@@ -11,6 +11,7 @@ type Account = {
token: string;
isModerator: boolean;
isAdmin: boolean;
+ isDeleted: boolean;
};
const data = localStorage.getItem('account');
diff --git a/src/client/init.ts b/src/client/init.ts
index 0313af4374..194ece886b 100644
--- a/src/client/init.ts
+++ b/src/client/init.ts
@@ -310,6 +310,13 @@ for (const plugin of ColdDeviceStorage.get('plugins').filter(p => p.active)) {
}
if ($i) {
+ if ($i.isDeleted) {
+ dialog({
+ type: 'warning',
+ text: i18n.locale.accountDeletionInProgress,
+ });
+ }
+
if ('Notification' in window) {
// 許可を得ていなかったらリクエスト
if (Notification.permission === 'default') {