(ctx context.Context)
| 2940 | } |
| 2941 | |
| 2942 | func (q *querier) GetChatDesktopEnabled(ctx context.Context) (bool, error) { |
| 2943 | // The desktop-enabled flag is a deployment-wide setting read by any |
| 2944 | // authenticated chat user and by chatd when deciding whether to expose |
| 2945 | // computer-use tooling. We only require that an explicit actor is present |
| 2946 | // in the context so unauthenticated calls fail closed. |
| 2947 | if _, ok := ActorFromContext(ctx); !ok { |
| 2948 | return false, ErrNoActor |
| 2949 | } |
| 2950 | return q.db.GetChatDesktopEnabled(ctx) |
| 2951 | } |
| 2952 | |
| 2953 | func (q *querier) GetChatDiffStatusByChatID(ctx context.Context, chatID uuid.UUID) (database.ChatDiffStatus, error) { |
| 2954 | // Authorize read on the parent chat. |
nothing calls this directly
no test coverage detected