feat: allow instagram reply_to [CW-2609] (#8248)

Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
Shivam Mishra
2023-11-01 06:01:12 +05:30
committed by GitHub
parent b6584ec68b
commit 8455186e9f
5 changed files with 80 additions and 9 deletions

View File

@@ -86,6 +86,36 @@ FactoryBot.define do
initialize_with { attributes }
end
factory :instagram_message_reply_event, class: Hash do
entry do
[
{
'id': 'instagram-message-id-123',
'time': '2021-09-08T06:35:04+0000',
'messaging': [
{
'sender': {
'id': 'Sender-id-1'
},
'recipient': {
'id': 'chatwoot-app-user-id-1'
},
'timestamp': '2021-09-08T06:34:04+0000',
'message': {
'mid': 'message-id-2',
'text': 'This is message with replyto mid',
'reply_to': {
'mid': 'message-id-1'
}
}
}
]
}
]
end
initialize_with { attributes }
end
factory :instagram_test_text_event, class: Hash do
entry do
[