ishapi 0.1.8.286 → 0.1.8.287
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/jobs/ishapi/email_message_intake_job.rb +6 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 848f93e47f25769c13743858765a6f9ea58a476e33e8e471d39c80cb5f3f6f0a
|
|
4
|
+
data.tar.gz: df675720a5fa2df39fb76e7f5c0e8a0241001b6b5a0d5ac5a5f36ebbed70d5c3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 84cb613fc995cd5f18a5b0180fad76079c7e272f71cfd0d009dff8df77d6e342b4f97dad0531a205bf014916cfc862b6b41cb15d2090e7f03280f82363507887
|
|
7
|
+
data.tar.gz: b8e916b519f7b191643af5bbe2050bc4056f1d569a9dff5c38cf65bd4163ae62700d4c1845bee05336212565360f7c63ceb9ed7ab9cf350142c6000b2fa99cbf
|
|
@@ -154,10 +154,14 @@ class Ishapi::EmailMessageIntakeJob < Ishapi::ApplicationJob
|
|
|
154
154
|
conv.update_attributes({
|
|
155
155
|
state: Conv::STATE_UNREAD,
|
|
156
156
|
latest_at: the_mail.date || Time.now.to_datetime,
|
|
157
|
-
|
|
158
|
-
# wp_term_ids: ( [ email_inbox_tag_id ] + conv.wp_term_ids + stub.wp_term_ids ).uniq,
|
|
157
|
+
from_emails: conv.from_emails.push( the_mail.from[0] ).uniq,
|
|
159
158
|
})
|
|
160
159
|
conv.add_tag( ::WpTag::INBOX )
|
|
160
|
+
conv_lead_tie = Office::EmailConversationLead.find_or_create_by({
|
|
161
|
+
lead_id: lead.id,
|
|
162
|
+
email_conversation_id: conv.id,
|
|
163
|
+
})
|
|
164
|
+
|
|
161
165
|
|
|
162
166
|
## Actions & Filters
|
|
163
167
|
email_filters = Office::EmailFilter.active
|