Possible Fix For Theme Reset

This commit is contained in:
thororen1234 2024-07-25 19:36:45 -04:00
parent ea1ba0c883
commit 9a0acbd72d

View file

@ -442,7 +442,7 @@ export default definePlugin({
if (proto == null || typeof proto === "string") return;
// @ts-ignore
const premiumType: number = user?._realPremiumType ?? UserStore?.getCurrentUser?._realPremiumType ?? user?.premium_type ?? UserStore?.getCurrentUser()?.premiumType ?? 0;
const premiumType: number = user?._realPremiumType ?? user?.premium_type ?? UserStore?.getCurrentUser()?.premiumType ?? 0;
if (premiumType !== 2) {
proto.appearance ??= AppearanceSettingsActionCreators.create();