diff --git a/pkg/interface/src/logic/api/hark.ts b/pkg/interface/src/logic/api/hark.ts index f8e4b11f5..ae7323a01 100644 --- a/pkg/interface/src/logic/api/hark.ts +++ b/pkg/interface/src/logic/api/hark.ts @@ -80,15 +80,15 @@ export class HarkApi extends BaseApi { } markCountAsRead(association: Association, parent: string, description: GraphNotifDescription) { - return this.harkAction( - { 'read-count': { + const action = { 'read-count': { graph: { graph: association.resource, group: association.group, description, index: parent } } - }); + }; + doOptimistically(useHarkState, action, this.harkAction.bind(this), [reduce]); } markEachAsRead(association: Association, parent: string, child: string, description: GraphNotifDescription, mod: string) {