fix: Delete attachments when removing them from Instagram in real-time (#9996)

This commit is contained in:
Muhsin Keloth
2024-08-21 20:10:31 +05:30
committed by GitHub
parent 44227de97e
commit 6571baf211
2 changed files with 7 additions and 3 deletions

View File

@@ -83,6 +83,7 @@ class Instagram::MessageText < Instagram::WebhooksBaseService
)
return if message_to_delete.blank?
message_to_delete.attachments.destroy_all
message_to_delete.update!(content: I18n.t('conversations.messages.deleted'), deleted: true)
end