MCPcopy Index your code
hub / github.com/coder/coder / UpdateChatLastReadMessageID

Method UpdateChatLastReadMessageID

coderd/database/querier.go:1223–1223  ·  view source on GitHub ↗

Updates the last read message ID for a chat. This is used to track which messages the owner has seen, enabling unread indicators.

(ctx context.Context, arg UpdateChatLastReadMessageIDParams)

Source from the content-addressed store, hash-verified

1221 // Updates the last read message ID for a chat. This is used to track
1222 // which messages the owner has seen, enabling unread indicators.
1223 UpdateChatLastReadMessageID(ctx context.Context, arg UpdateChatLastReadMessageIDParams) error
1224 // Updates the cached last completed turn summary for sidebar display.
1225 // Empty or whitespace-only summaries are stored as NULL here so direct
1226 // query callers cannot accidentally persist blank sidebar text.

Callers 6

markChatAsReadMethod · 0.65
TestGetChatsFilterFunction · 0.65
TestChatHasUnreadFunction · 0.65
TestChatsMethod · 0.65

Implementers 5

sqlQueriercoderd/database/db.go
queryMetricsStorecoderd/database/dbmetrics/querymetrics
queriercoderd/database/dbauthz/dbauthz.go
MockStorecoderd/database/dbmock/dbmock.go
MockStoreMockRecordercoderd/database/dbmock/dbmock.go

Calls

no outgoing calls

Tested by 3

TestGetChatsFilterFunction · 0.52
TestChatHasUnreadFunction · 0.52
TestChatsMethod · 0.52