diff --git a/mobile/src/tasks/use-mobile-task-comment-send-outcome.ts b/mobile/src/tasks/use-mobile-task-comment-send-outcome.ts index f0225f11fe1..ac847f9fc26 100644 --- a/mobile/src/tasks/use-mobile-task-comment-send-outcome.ts +++ b/mobile/src/tasks/use-mobile-task-comment-send-outcome.ts @@ -5,7 +5,7 @@ import { useRef, useState } from './mobile-tasks-dependencies' -import { githubTaskKey } from './github-task-identity' +import { taskItemIdentity } from './task-draft-rows' import type { ActionableTaskItem } from './mobile-tasks-project-workspace-types' import type { DetailPayload } from './mobile-tasks-provider-detail-types' import { isRpcDeliveryUnknown } from '../transport/rpc/rpc-delivery-ambiguity' @@ -33,7 +33,7 @@ type CommentSendOutcome = { } function itemIdentity(item: ActionableTaskItem | null): string | null { - return item?.provider === 'github' ? githubTaskKey(item.source) : (item?.key ?? null) + return item && taskItemIdentity(item) } function sameCommentText(a: string, b: string): boolean { diff --git a/mobile/src/tasks/use-mobile-tasks-hosted-comment-review-actions.tsx b/mobile/src/tasks/use-mobile-tasks-hosted-comment-review-actions.tsx index b2399a1c5ee..21908343735 100644 --- a/mobile/src/tasks/use-mobile-tasks-hosted-comment-review-actions.tsx +++ b/mobile/src/tasks/use-mobile-tasks-hosted-comment-review-actions.tsx @@ -160,7 +160,7 @@ export function useMobileTasksHostedCommentReviewActions< finish() } }, - [claimPublication, client, itemCommentDraft, tryBeginMutation] + [claimPublication, client, itemCommentDraft, setItemCommentDraft, tryBeginMutation] ) const copyTaskLink = useCallback( diff --git a/mobile/src/tasks/use-mobile-tasks-linear-item-actions.tsx b/mobile/src/tasks/use-mobile-tasks-linear-item-actions.tsx index b1ff0216e05..c5c85a0ee1a 100644 --- a/mobile/src/tasks/use-mobile-tasks-linear-item-actions.tsx +++ b/mobile/src/tasks/use-mobile-tasks-linear-item-actions.tsx @@ -81,7 +81,7 @@ export function useMobileTasksLinearItemActions< finish() } }, - [client, linearCommentDraft, tryBeginMutation] + [client, linearCommentDraft, setLinearCommentDraft, tryBeginMutation] ) const openLinearSubIssue = useCallback( diff --git a/mobile/src/tasks/use-mobile-tasks-project-workspace-comment-actions.tsx b/mobile/src/tasks/use-mobile-tasks-project-workspace-comment-actions.tsx index f606200946d..3640476072c 100644 --- a/mobile/src/tasks/use-mobile-tasks-project-workspace-comment-actions.tsx +++ b/mobile/src/tasks/use-mobile-tasks-project-workspace-comment-actions.tsx @@ -233,7 +233,7 @@ export function useMobileTasksProjectWorkspaceCommentActions(model: WorkspaceCre setProjectMutating(false) } }, - [activeGitHubProjectHost, client, projectCommentDraft, projectMutating] + [activeGitHubProjectHost, client, projectCommentDraft, projectMutating, setProjectCommentDraft] ) const updateProjectRowComment = useCallback(