diff --git a/src/core/client/stream/mutations/CreateCommentReactionMutation.ts b/src/core/client/stream/mutations/CreateCommentReactionMutation.ts index 9621ebdfb..ef0b7a61a 100644 --- a/src/core/client/stream/mutations/CreateCommentReactionMutation.ts +++ b/src/core/client/stream/mutations/CreateCommentReactionMutation.ts @@ -48,7 +48,11 @@ function commit(environment: Environment, input: CreateCommentReactionInput) { myActionPresence: { reaction: true, }, - actionCounts: currentCount + 1, + actionCounts: { + reaction: { + total: currentCount + 1, + }, + }, }, clientMutationId: (clientMutationId++).toString(), }, diff --git a/src/core/client/stream/mutations/DeleteCommentReactionMutation.ts b/src/core/client/stream/mutations/DeleteCommentReactionMutation.ts index a485433de..027723544 100644 --- a/src/core/client/stream/mutations/DeleteCommentReactionMutation.ts +++ b/src/core/client/stream/mutations/DeleteCommentReactionMutation.ts @@ -42,7 +42,11 @@ function commit(environment: Environment, input: CreateCommentReactionInput) { myActionPresence: { reaction: false, }, - actionCounts: currentCount - 1, + actionCounts: { + reaction: { + total: currentCount - 1, + }, + }, }, clientMutationId: clientMutationId.toString(), },