mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-17 13:53:52 +02:00
Refactor Discord RPC
This commit is contained in:
@@ -56,6 +56,13 @@ export const useUpdateLoopStore = defineStore('UpdateLoop', () => {
|
||||
}
|
||||
});
|
||||
|
||||
const nextDiscordUpdate = computed({
|
||||
get: () => state.nextDiscordUpdate,
|
||||
set: (value) => {
|
||||
state.nextDiscordUpdate = value;
|
||||
}
|
||||
});
|
||||
|
||||
async function updateLoop() {
|
||||
const authStore = useAuthStore();
|
||||
const userStore = useUserStore();
|
||||
@@ -158,6 +165,7 @@ export const useUpdateLoopStore = defineStore('UpdateLoop', () => {
|
||||
state,
|
||||
nextGroupInstanceRefresh,
|
||||
nextCurrentUserRefresh,
|
||||
nextDiscordUpdate,
|
||||
updateLoop
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user