streaks: remove notification

This commit is contained in:
thororen1234 2026-05-10 20:20:45 -04:00
parent e84e473de7
commit 6d7f8279b5
No known key found for this signature in database

View file

@ -7,9 +7,7 @@
import "./style.css";
import { DecoratorProps } from "@api/MemberListDecorators";
import { showNotification } from "@api/Notifications";
import { iconsModule } from "@equicordplugins/_core/concatenatedModules";
import { authorize } from "@plugins/reviewDB/auth";
import { Devs, EquicordDevs } from "@utils/constants";
import { classNameFactory } from "@utils/css";
import definePlugin from "@utils/types";
@ -73,24 +71,9 @@ export default definePlugin({
dependencies: ["MessageDecorationsAPI", "MemberListDecoratorsAPI", "ConcatenatedModules"],
settings,
start() {
if (!useAuthorizationStore.getState().isAuthorized()) {
showNotification({
title: "Not Authorized To Use Streaks",
body: "Please click here to authorize",
async onClick() {
await authorize();
await useStreaksStore.getState().migrate();
await useStreaksStore.getState().fetch();
}
});
}
},
flux: {
async CONNECTION_OPEN() {
useAuthorizationStore.getState().init();
useStreaksStore.getState().clear();
if (useAuthorizationStore.getState().isAuthorized()) {
await useStreaksStore.getState().migrate();
await useStreaksStore.getState().fetch();