diff --git a/src/store/index.ts b/src/store/index.ts index 8c1d6df..ec50ae7 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -905,9 +905,11 @@ export const dismissTaskUpdateIndicator = (taskId: string, updatedAt: string) => export const isTaskCollaborativelyShared = (task: Task) => task.shareRefs.some(ref => { + const currentUserId = pb.authStore.model?.id; const context = getContextByRef(ref); const policy = context?.policy || (ref.kind === "user" ? "collaborative" : "handoff"); - return policy === "collaborative"; + const targetUserId = context?.targetUserId || null; + return ref.kind === "user" && policy === "collaborative" && !!targetUserId && targetUserId !== currentUserId; }); export const isTaskCollapsedUntilUpdated = (task: Task) =>