Function
markDirectMessageSent
(
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. |
| 270 | export 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 | |
| 280 | export const markDirectMessagesRead = async (userId: string): Promise<void> => { |
| 281 | await gqlClient.request(MARK_DIRECT_MESSAGES_READ_MUTATION, { userId }); |
Tested by
no test coverage detected