( ctx context.Context, chat database.Chat, statusLabel string, logger slog.Logger, )
| 9720 | } |
| 9721 | |
| 9722 | func (p *Server) dispatchSuccessfulTurnPush( |
| 9723 | ctx context.Context, |
| 9724 | chat database.Chat, |
| 9725 | statusLabel string, |
| 9726 | logger slog.Logger, |
| 9727 | ) { |
| 9728 | if !p.webpushConfigured() { |
| 9729 | return |
| 9730 | } |
| 9731 | pushBody := fallbackTurnStatusLabel(database.ChatStatusWaiting) |
| 9732 | if statusLabel != "" { |
| 9733 | pushBody = statusLabel |
| 9734 | } |
| 9735 | p.dispatchPush(ctx, chat, pushBody, database.ChatStatusWaiting, logger) |
| 9736 | } |
| 9737 | |
| 9738 | func (p *Server) maybeClearLastTurnSummaryAsync( |
| 9739 | ctx context.Context, |
no test coverage detected