refactor untils

This commit is contained in:
pa
2026-03-10 21:40:52 +09:00
parent 1dfd0bf54c
commit fe176f22ff
36 changed files with 1062 additions and 628 deletions
+8 -6
View File
@@ -13,12 +13,12 @@ import {
escapeTag,
executeWithBackoff,
findUserByDisplayName,
getUserMemo,
parseLocation,
parseNotificationDetails,
removeFromArray,
sanitizeNotificationJson
} from '../../shared/utils';
import { getUserMemo } from '../../coordinators/memoCoordinator';
import {
friendRequest,
instanceRequest,
@@ -347,11 +347,13 @@ export const useNotificationStore = defineStore('Notification', () => {
}
}
}
if (!checkCanInvite(currentLocation, {
currentUserId: userStore.currentUser.id,
lastLocationStr: locationStore.lastLocation.location,
cachedInstances: instanceStore.cachedInstances
})) {
if (
!checkCanInvite(currentLocation, {
currentUserId: userStore.currentUser.id,
lastLocationStr: locationStore.lastLocation.location,
cachedInstances: instanceStore.cachedInstances
})
) {
return;
}