ishapi 0.1.8.286 → 0.1.8.287

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f5c0832ec3c2109607e7d612d9daf38dbff6e2b710879710f71e358ed5304ea3
4
- data.tar.gz: e2ad530fe9863aa53e532b1e37ab628a179b49da40a5edb31fd4c0abe080e721
3
+ metadata.gz: 848f93e47f25769c13743858765a6f9ea58a476e33e8e471d39c80cb5f3f6f0a
4
+ data.tar.gz: df675720a5fa2df39fb76e7f5c0e8a0241001b6b5a0d5ac5a5f36ebbed70d5c3
5
5
  SHA512:
6
- metadata.gz: 15b2df35cdc3dde6cece928bdf20427f4603b82de04e52cb9ca901ba1ebade45d338487d80de8013f87fc3a9225158d6ee46dafdf041bcfdd0f003cee23fc46d
7
- data.tar.gz: 6cdaba9a607c484cff7a481e2edbe50071a3ec3ea3881392487f8406f85a0bebacfda86842a2bb83ed6297692d9a509a64dcad54f66cc2ec338076e83e5b36c1
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
- lead_ids: conv.lead_ids.push( lead.id ).uniq, ## @TODO: change, this is an association now
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ishapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.286
4
+ version: 0.1.8.287
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox