(chatID uuid.UUID, event codersdk.ChatStreamEvent)
| 5463 | } |
| 5464 | |
| 5465 | func (p *Server) publishEvent(chatID uuid.UUID, event codersdk.ChatStreamEvent) { |
| 5466 | if event.ChatID == uuid.Nil { |
| 5467 | event.ChatID = chatID |
| 5468 | } |
| 5469 | p.publishToStream(chatID, event) |
| 5470 | } |
| 5471 | |
| 5472 | func (p *Server) publishStatus(chatID uuid.UUID, status database.ChatStatus, workerID uuid.NullUUID) { |
| 5473 | p.publishEvent(chatID, codersdk.ChatStreamEvent{ |
no test coverage detected