(ctx context.Context, id uuid.UUID)
| 6324 | } |
| 6325 | |
| 6326 | func (q *querier) PinChatByID(ctx context.Context, id uuid.UUID) error { |
| 6327 | chat, err := q.db.GetChatByID(ctx, id) |
| 6328 | if err != nil { |
| 6329 | return err |
| 6330 | } |
| 6331 | if err := q.authorizeContext(ctx, policy.ActionUpdate, chat); err != nil { |
| 6332 | return err |
| 6333 | } |
| 6334 | return q.db.PinChatByID(ctx, id) |
| 6335 | } |
| 6336 | |
| 6337 | func (q *querier) PopNextQueuedMessage(ctx context.Context, chatID uuid.UUID) (database.ChatQueuedMessage, error) { |
| 6338 | chat, err := q.db.GetChatByID(ctx, chatID) |
nothing calls this directly
no test coverage detected