Skip to content

Commit 4b63adc

Browse files
committed
refactor: remove redundant custom chat handling
1 parent 5cc7ded commit 4b63adc

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

plugin/adapters/plugin/manager.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -310,14 +310,6 @@ func (m *Manager) dispatchEvent(envelope *pb.EventEnvelope, expectResult bool) [
310310
"plugin_response_ms", pluginResponseTime.Milliseconds(),
311311
"plugin_response_us", pluginResponseTime.Microseconds())
312312
}
313-
314-
if envelope.Type == pb.EventType_CHAT {
315-
if chatEvt := envelope.GetChat(); chatEvt != nil {
316-
if chatMut := res.GetChat(); chatMut != nil && chatMut.Message != nil {
317-
chatEvt.Message = *chatMut.Message
318-
}
319-
}
320-
}
321313
}
322314
}
323315
return results

0 commit comments

Comments
 (0)