Update SendMessage for new protocol
This commit is contained in:
@@ -248,13 +248,8 @@ func (m *MockHTTPServer) handleSendMessage(w http.ResponseWriter, r *http.Reques
|
||||
// Send message
|
||||
m.Server.SendMessage(conversation, message)
|
||||
|
||||
// Formulate response
|
||||
sendMessageResp := SendMessageResponse{
|
||||
Guid: message.Guid,
|
||||
}
|
||||
|
||||
// Encode response as JSON
|
||||
jsonData, err := json.Marshal(sendMessageResp)
|
||||
jsonData, err := json.Marshal(message)
|
||||
if err != nil {
|
||||
log.Error().Err(err).Msg("Error marshalling response")
|
||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||
|
||||
Reference in New Issue
Block a user