fix: nil reference to metadata

This commit is contained in:
gabrieljablonski 2025-05-02 22:19:20 -03:00
parent 312c35fe9a
commit 81d62d94f1

View File

@ -99,7 +99,7 @@ class Whatsapp::Providers::WhatsappBaileysService < Whatsapp::Providers::BaseSer
content[:image] = buffer content[:image] = buffer
when 'audio' when 'audio'
content[:audio] = buffer content[:audio] = buffer
content[:ptt] = attachment.meta['is_recorded_audio'] content[:ptt] = attachment.meta&.dig('is_recorded_audio')
when 'file' when 'file'
content[:document] = buffer content[:document] = buffer
when 'sticker' when 'sticker'