mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-27 02:33:48 +02:00
Show Discord Connections toggle
This commit is contained in:
@@ -100,6 +100,7 @@ export const useUserStore = defineStore('User', () => {
|
||||
friends: [],
|
||||
googleId: '',
|
||||
hasBirthday: false,
|
||||
hasDiscordFriendsOptOut: false,
|
||||
hasEmail: false,
|
||||
hasLoggedInFromClient: false,
|
||||
hasPendingEmail: false,
|
||||
@@ -2054,6 +2055,12 @@ export const useUserStore = defineStore('User', () => {
|
||||
});
|
||||
}
|
||||
|
||||
function toggleDiscordFriendsOptOut() {
|
||||
userRequest.saveCurrentUser({
|
||||
hasDiscordFriendsOptOut: !currentUser.value.hasDiscordFriendsOptOut
|
||||
});
|
||||
}
|
||||
|
||||
return {
|
||||
state,
|
||||
|
||||
@@ -2081,6 +2088,7 @@ export const useUserStore = defineStore('User', () => {
|
||||
handleConfig,
|
||||
showSendBoopDialog,
|
||||
checkNote,
|
||||
toggleSharedConnectionsOptOut
|
||||
toggleSharedConnectionsOptOut,
|
||||
toggleDiscordFriendsOptOut
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user