Skip to content

Commit

Permalink
Merge pull request #1914 from tactilenews/fix_delivery_receipt_error
Browse files Browse the repository at this point in the history
Fix param mismatch
  • Loading branch information
mattwr18 authored Jun 28, 2024
2 parents 07cb810 + b254b9a commit 08ccf94
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/jobs/signal_adapter/receive_polling_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 08ccf94

Please sign in to comment.