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 &&
|
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 }>({
|
||||||
|
|||||||
@@ -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(
|
||||||
() =>
|
() =>
|
||||||
|
|||||||
Reference in New Issue
Block a user