diff --git a/app/models/pager_tree/integrations/email/v3.rb b/app/models/pager_tree/integrations/email/v3.rb index bc812af..f11a8bc 100644 --- a/app/models/pager_tree/integrations/email/v3.rb +++ b/app/models/pager_tree/integrations/email/v3.rb @@ -103,7 +103,8 @@ def _dedup_keys keys.concat(Array(_mail.references)) end - keys.compact_blank.uniq + # only dedup the references per integration. Customer like sending one email to multiple integration inboxes + keys.compact_blank.uniq.map { |x| "#{prefix_id}_#{x}" } end def _title