Send and receive SMS messages using your Android phone programmatically via a simple HTTP API
Fix logic for updating message thread status
Acho Arnoldfd5c60c621d9
diff --git a/api/pkg/services/message_thread_service.go b/api/pkg/services/message_thread_service.goindex 239b7c1c..af65186b 100644--- a/api/pkg/services/message_thread_service.go+++ b/api/pkg/services/message_thread_service.go@@ -62,7 +62,7 @@ func (service *MessageThreadService) UpdateThread(ctx context.Context, params Mereturn service.tracer.WrapErrorSpan(span, stacktrace.Propagate(err, msg))}- if thread.OrderTimestamp.Unix() > params.Timestamp.Unix() && params.Status != entities.MessageStatusFailed {+ if thread.OrderTimestamp.Unix() > params.Timestamp.Unix() && thread.Status != entities.MessageStatusSending {ctxLogger.Info(fmt.Sprintf("thread [%s] has timestamp [%s] and status [%s] which is greater than timestamp [%s] for message [%s] and status [%s]", thread.ID, thread.OrderTimestamp, thread.Status, params.Timestamp, params.MessageID, params.Status))return nil}