add enable mutual friends sharing prompt

This commit is contained in:
pa
2025-11-25 22:00:05 +09:00
committed by Natsumi
parent 05c5b32755
commit 5176447e69
4 changed files with 40 additions and 8 deletions

View File

@@ -2021,6 +2021,13 @@ export const useUserStore = defineStore('User', () => {
sendBoopDialog.value.visible = true;
}
function toggleSharedConnectionsOptOut() {
userRequest.saveCurrentUser({
hasSharedConnectionsOptOut:
!currentUser.value.hasSharedConnectionsOptOut
});
}
return {
state,
@@ -2048,6 +2055,7 @@ export const useUserStore = defineStore('User', () => {
getCurrentUser,
handleConfig,
showSendBoopDialog,
checkNote
checkNote,
toggleSharedConnectionsOptOut
};
});