feat: Instagram story replies will display the original story link (#6846)

This commit is contained in:
Tejaswini Chile
2023-04-26 15:27:07 +05:30
committed by GitHub
parent 5d30dabf97
commit 3c2d6faf68
7 changed files with 112 additions and 3 deletions

View File

@@ -26,6 +26,39 @@ FactoryBot.define do
initialize_with { attributes }
end
factory :instagram_story_reply_event, class: Hash do
entry do
[
{
'id': 'instagram-message-id-123',
'time': '2021-09-08T06:34: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-1',
'text': 'This is the story reply',
'reply_to': {
'story': {
'id': 'chatwoot-app-user-id-1',
'url': 'https://chatwoot-assets.local/sample.png'
}
}
}
}
]
}
]
end
initialize_with { attributes }
end
factory :instagram_test_text_event, class: Hash do
entry do
[