Send and receive SMS messages using your Android phone programmatically via a simple HTTP API
Fix conditional logic
Acho Arnoldd8f894729fe3
diff --git a/api/pkg/services/message_thread_service.go b/api/pkg/services/message_thread_service.goindex ec11bafc..239b7c1c 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() && thread.Status != entities.MessageStatusFailed {+ if thread.OrderTimestamp.Unix() > params.Timestamp.Unix() && params.Status != entities.MessageStatusFailed {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}