Skip to content

Send and receive SMS messages using your Android phone programmatically via a simple HTTP API

feat(listeners): pass ExactSendTime to PhoneNotificationService from event

Acho Arnoldadbcd2e36b58
diff --git a/api/pkg/listeners/phone_notification_listener.go b/api/pkg/listeners/phone_notification_listener.go
index e1b3eef7..bcb15612 100644
--- a/api/pkg/listeners/phone_notification_listener.go
+++ b/api/pkg/listeners/phone_notification_listener.go
@@ -53,14 +53,16 @@ func (listener *PhoneNotificationListener) onMessageAPISent(ctx context.Context,
}
sendParams := &services.PhoneNotificationScheduleParams{
- UserID: payload.UserID,
- Owner: payload.Owner,
- Contact: payload.Contact,
- Content: payload.Content,
- SIM: payload.SIM,
- Encrypted: payload.Encrypted,
- Source: event.Source(),
- MessageID: payload.MessageID,
+ UserID: payload.UserID,
+ Owner: payload.Owner,
+ Contact: payload.Contact,
+ Content: payload.Content,
+ SIM: payload.SIM,
+ Encrypted: payload.Encrypted,
+ Source: event.Source(),
+ MessageID: payload.MessageID,
+ ExactSendTime: payload.ExactSendTime,
+ ScheduledSendTime: payload.ScheduledSendTime,
}
if err := listener.service.Schedule(ctx, sendParams); err != nil {