MCPcopy Create free account
hub / github.com/dailydotdev/apps / flush

Function flush

packages/shared/src/features/messages/hooks/useMarkThreadRead.ts:37–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35
36 const pending = pendingRef.current;
37 const flush = () => {
38 clearTimeout(pending.timer);
39 pending.timer = undefined;
40 markedKeyRef.current = readKey;
41 markDmConversationRead(queryClient, user, peerId).catch(() => undefined);
42 };
43 const schedule = () => {
44 clearTimeout(pending.timer);
45 pending.timer =

Callers

nothing calls this directly

Calls 1

markDmConversationReadFunction · 0.90

Tested by

no test coverage detected