MCPcopy
hub / github.com/coder/mux / getLastReadTimestamp

Function getLastReadTimestamp

tests/ui/chat/unreadIndicator.test.ts:43–45  ·  view source on GitHub ↗

* Get the lastReadTimestamp from persisted state.

(workspaceId: string)

Source from the content-addressed store, hash-verified

41 * Get the lastReadTimestamp from persisted state.
42 */
43function getLastReadTimestamp(workspaceId: string): number {
44 return readPersistedState<number>(getWorkspaceLastReadKey(workspaceId), 0);
45}
46
47/**
48 * Find the workspace element in the sidebar and check if it shows the unread indicator.

Callers 1

Calls 2

readPersistedStateFunction · 0.90
getWorkspaceLastReadKeyFunction · 0.90

Tested by

no test coverage detected