feat: Render instagram reels in Chatwoot (#9829)

- Previously we were ignoring the reels shared over Instagram messages.
This PR will render the reels with in Chatwoot.

followup : we need to render reels in a better interface so that it is
clearly denoted to the user that its an Instagram reel
This commit is contained in:
Sojan Jose
2024-07-24 12:58:12 -07:00
committed by GitHub
parent 71073a06ff
commit 8e2b329202
7 changed files with 73 additions and 5 deletions

View File

@@ -39,7 +39,7 @@ class Attachment < ApplicationRecord
validate :acceptable_file
validates :external_url, length: { maximum: Limits::URL_LENGTH_LIMIT }
enum file_type: { :image => 0, :audio => 1, :video => 2, :file => 3, :location => 4, :fallback => 5, :share => 6, :story_mention => 7,
:contact => 8 }
:contact => 8, :ig_reel => 9 }
def push_event_data
return unless file_type