1
0
mirror of https://github.com/ilyakooo0/urbit.git synced 2024-12-15 01:52:42 +03:00

hark: optimistic read

This commit is contained in:
Liam Fitzgerald 2021-05-17 10:43:23 +10:00
parent bbc9d7c843
commit 64582458dc
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -80,15 +80,15 @@ export class HarkApi extends BaseApi<StoreState> {
}
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) {