fix: invitations to groups are immediately shown
Solves one case in #1688
This commit is contained in:
@@ -714,6 +714,8 @@ const { result, subscribeToMore } = useQuery<{
|
||||
currentActor.value?.id !== null &&
|
||||
group.value?.preferredUsername !== undefined &&
|
||||
usernameWithDomain(group.value) !== "",
|
||||
// always display the latest information
|
||||
fetchPolicy: "cache-and-network",
|
||||
})
|
||||
);
|
||||
subscribeToMore<{ actorId: string; group: string }>({
|
||||
|
||||
@@ -101,10 +101,17 @@ const limit = 10;
|
||||
|
||||
const { result: membershipsResult, loading } = useQuery<{
|
||||
loggedUser: Pick<IUser, "memberships">;
|
||||
}>(LOGGED_USER_MEMBERSHIPS, () => ({
|
||||
page: page.value,
|
||||
limit,
|
||||
}));
|
||||
}>(
|
||||
LOGGED_USER_MEMBERSHIPS,
|
||||
() => ({
|
||||
page: page.value,
|
||||
limit,
|
||||
}),
|
||||
() => ({
|
||||
// always display the latest information
|
||||
fetchPolicy: "cache-and-network",
|
||||
})
|
||||
);
|
||||
|
||||
const membershipsPages = computed(
|
||||
() =>
|
||||
|
||||
Reference in New Issue
Block a user