Fix Quest auto invite and accept invite request

This commit is contained in:
Natsumi
2025-12-25 07:49:21 +13:00
parent 3a8627fd0e
commit 44b0c8bfde
2 changed files with 11 additions and 0 deletions

View File

@@ -235,6 +235,13 @@ export const useNotificationStore = defineStore('Notification', () => {
if (locationStore.lastLocation.location === 'traveling') {
currentLocation = locationStore.lastLocationDestination;
}
if (!currentLocation) {
// game log disabled, use API location
currentLocation = userStore.currentUser.$locationTag;
if (userStore.currentUser.$travelingToLocation) {
currentLocation = userStore.currentUser.$travelingToLocation;
}
}
if (!currentLocation) {
return;
}

View File

@@ -536,6 +536,10 @@
if (lastLocation.value.location === 'traveling') {
currentLocation = lastLocationDestination.value;
}
if (!currentLocation) {
// game log disabled, use API location
currentLocation = currentUser.$locationTag;
}
const L = parseLocation(currentLocation);
worldRequest
.getCachedWorld({