fix: validate instagram story only while saving the message (#6340)

This commit is contained in:
Tejaswini Chile
2023-01-30 13:03:59 +05:30
committed by GitHub
parent 6bd4e8853b
commit 6013cc9bea
8 changed files with 74 additions and 8 deletions

View File

@@ -112,7 +112,6 @@ class Message < ApplicationRecord
}
)
data.merge!(echo_id: echo_id) if echo_id.present?
validate_instagram_story if instagram_story_mention?
data.merge!(attachments: attachments.map(&:push_event_data)) if attachments.present?
merge_sender_attributes(data)
end