fix: Delete attachments when removing them from Instagram in real-time (#9996)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user