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

Function dmUnreadCountQueryKey

packages/shared/src/features/messages/queries.ts:171–172  ·  view source on GitHub ↗
(user: QueryUser)

Source from the content-addressed store, hash-verified

169 });
170
171export const dmUnreadCountQueryKey = (user: QueryUser) =>
172 generateQueryKey(RequestKey.DirectMessages, user, 'unread_count');
173
174// Peers the count took on before the cached inbox had them, so a burst counts
175// once and reading them gives it back. Nothing observes it, so it opts out of

Callers 6

unreadCountFunction · 0.90
queries.spec.tsFile · 0.90
ShellStateRequestFunction · 0.90
shiftDmUnreadCountFunction · 0.85

Calls 1

generateQueryKeyFunction · 0.90

Tested by 1

unreadCountFunction · 0.72