From b254b9a62fe980742a2db72762414180469dac17 Mon Sep 17 00:00:00 2001 From: Matthew Rider Date: Fri, 28 Jun 2024 17:22:31 +0200 Subject: [PATCH] Fix param mismatch --- app/jobs/signal_adapter/receive_polling_job.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/jobs/signal_adapter/receive_polling_job.rb b/app/jobs/signal_adapter/receive_polling_job.rb index 6e69a3363..c69253fe7 100644 --- a/app/jobs/signal_adapter/receive_polling_job.rb +++ b/app/jobs/signal_adapter/receive_polling_job.rb @@ -83,8 +83,7 @@ def handle_connect(contributor, signal_uuid) SignalAdapter::Outbound.send_welcome_message!(contributor) end - def handle_delivery_receipt(signal_message, contributor) - delivery_receipt = signal_message.dig(:envelope, :receiptMessage) + def handle_delivery_receipt(delivery_receipt, contributor) datetime = Time.zone.at(delivery_receipt[:when] / 1000).to_datetime latest_received_message = contributor.received_messages.first return unless latest_received_message