Remove moderations notify dot

This commit is contained in:
Natsumi
2021-05-22 17:08:55 +12:00
parent e5d971bf69
commit 22b565cfb3

View File

@@ -2326,7 +2326,6 @@ speechSynthesis.getVoices();
API.$on('LOGIN', function () { API.$on('LOGIN', function () {
this.cachedPlayerModerations.clear(); this.cachedPlayerModerations.clear();
$app.playerModerationTable.lastRunLength = 0;
this.isPlayerModerationsLoading = false; this.isPlayerModerationsLoading = false;
this.refreshPlayerModerations(); this.refreshPlayerModerations();
}); });
@@ -2436,11 +2435,6 @@ speechSynthesis.getVoices();
this.isPlayerModerationsLoading = false; this.isPlayerModerationsLoading = false;
}).then(() => { }).then(() => {
this.deleteExpiredPlayerModerations(); this.deleteExpiredPlayerModerations();
if (($app.playerModerationTable.data.length !== $app.playerModerationTable.lastRunLength) &&
($app.playerModerationTable.lastRunLength > 0)) {
$app.notifyMenu('moderation');
}
$app.playerModerationTable.lastRunLength = $app.playerModerationTable.data.length;
}); });
}; };