fix: invitations to groups are immediately shown

Solves one case in #1688
This commit is contained in:
Massedil
2025-06-19 16:40:27 +02:00
parent e606c104c0
commit 63758a444f
2 changed files with 13 additions and 4 deletions

View File

@@ -714,6 +714,8 @@ const { result, subscribeToMore } = useQuery<{
currentActor.value?.id !== null && currentActor.value?.id !== null &&
group.value?.preferredUsername !== undefined && group.value?.preferredUsername !== undefined &&
usernameWithDomain(group.value) !== "", usernameWithDomain(group.value) !== "",
// always display the latest information
fetchPolicy: "cache-and-network",
}) })
); );
subscribeToMore<{ actorId: string; group: string }>({ subscribeToMore<{ actorId: string; group: string }>({

View File

@@ -101,10 +101,17 @@ const limit = 10;
const { result: membershipsResult, loading } = useQuery<{ const { result: membershipsResult, loading } = useQuery<{
loggedUser: Pick<IUser, "memberships">; loggedUser: Pick<IUser, "memberships">;
}>(LOGGED_USER_MEMBERSHIPS, () => ({ }>(
page: page.value, LOGGED_USER_MEMBERSHIPS,
limit, () => ({
})); page: page.value,
limit,
}),
() => ({
// always display the latest information
fetchPolicy: "cache-and-network",
})
);
const membershipsPages = computed( const membershipsPages = computed(
() => () =>