iachat/app/builders/messages
Muhsin Keloth 8565341682
fix: Prevent creating duplicate messages via Instagram echo events (#11535)
Fixes
https://linear.app/chatwoot/issue/CW-4383/copilot-resolution-message-creating-duplicate-conversations-due-to
and
https://linear.app/chatwoot/issue/CW-4287/instagram-channel-missing-existing-source-id-check

When the copilot/system resolves a conversation with a system resolve
message (with `lock_to_single_conversation` disabled), echo events were
creating new conversations instead of using existing ones. This occurred
because we were checking the echo_id in the new conversation rather than
in the resolved conversation. This PR fixes the issue by checking if the
message exists anywhere in the system instead of checking within a
particular conversation.
2025-05-22 11:02:28 +05:30
..
facebook feat: extending lock to single conversation to meta inbox (#9104) 2024-04-03 21:33:23 +05:30
instagram fix: Prevent creating duplicate messages via Instagram echo events (#11535) 2025-05-22 11:02:28 +05:30
messenger feat: Instagram Inbox using Instagram Business Login (#11054) 2025-04-08 10:47:41 +05:30
message_builder.rb fix: accepting external source_id (#8359) 2023-12-13 16:21:55 +05:30