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

Function markDirectMessageSent

packages/shared/src/features/messages/graphql.ts:270–278  ·  view source on GitHub ↗
(
  userId: string,
  preview?: string,
)

Source from the content-addressed store, hash-verified

268// chat server acked; that's what the peer's unread count is built from. The
269// preview is what the peer's push notification shows.
270export const markDirectMessageSent = async (
271 userId: string,
272 preview?: string,
273): Promise<void> => {
274 await gqlClient.request(MARK_DIRECT_MESSAGE_SENT_MUTATION, {
275 userId,
276 preview,
277 });
278};
279
280export const markDirectMessagesRead = async (userId: string): Promise<void> => {
281 await gqlClient.request(MARK_DIRECT_MESSAGES_READ_MUTATION, { userId });

Callers 1

onAckFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected