wco_models 3.1.0.239 → 3.1.0.240

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c576f18191bb68a7f538a7bf8eb0dca2c6929bb214a9a5ee1b14fb71c0d35cca
4
- data.tar.gz: fdc09568a679cd65c9c1e1cc03003b8450d31a195f83f2a39b85219dc18a4123
3
+ metadata.gz: afeb2a36830a27cb6b8fd3607f24f229123a1d2c46136aaad50b56cea0f3d300
4
+ data.tar.gz: bb8705a59baf74db8e59ad581ac81696c9f8ed3a3874e9fb82d8d63c84c1da37
5
5
  SHA512:
6
- metadata.gz: e73a58486ee0c29b1cddd810d573007bbe239eb70d12263a15575cf91dda5a7282b4f3ad347fc839719e5a6f95424ae33e7a3bf738ba25eac08d9133d4b91106
7
- data.tar.gz: fb61141a6c5f5109f40b76da7cb257d6da66563abd9cdeae5029db02bdc670cabd994aee4b8c9319b8e820c32c643830d4d8dbd6e92bb35f2d7c1dc2d3114467
6
+ metadata.gz: 1ef5758d81ae26e830b1c4b571990a089a1b04b303fca235c49a76669ee3688f444bdf5f19841e36bd31bdd4d4399df6b6558e515164adb890147f40acbc1b5a
7
+ data.tar.gz: 11d69fa6b9502e7556bfca85fb1c4a49bc8cc0a836963525dbfadbc9e45877e40f3350f3f4c9337aaddef92083030cbcc2a376af4fabf66080a79a9244d5d939
@@ -41,6 +41,7 @@ class WcoEmail::EmailTemplate
41
41
  field :config_json, type: Object, default: '{}'
42
42
  field :layout, default: 'plain'
43
43
  field :mangle_subject, type: :boolean, default: false
44
+ field :respond_inline, type: :boolean, default: true
44
45
 
45
46
  DEFAULT_FROM_EMAIL = 'Victor Pudeyev <no-reply@wasya.co>'
46
47
  FROM_EMAILS = [
@@ -105,11 +105,15 @@ class WcoEmail::Message
105
105
  conv.tags -= [ filter.tag ]
106
106
 
107
107
  when WcoEmail::EmailFilter::KIND_AUTORESPOND_TMPL
108
- WcoEmail::Context.create!({
108
+ ctx = WcoEmail::Context.new({
109
109
  email_template: filter.email_template,
110
110
  lead_id: lead.id,
111
111
  send_at: Time.now,
112
112
  })
113
+ if filter.email_template.respond_inline
114
+ ctx.reply_to_message_id = self.id
115
+ end
116
+ ctx.save!
113
117
 
114
118
  when WcoEmail::EmailFilter::KIND_AUTORESPOND_EACT
115
119
  ##
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.239
4
+ version: 3.1.0.240
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-01-01 00:00:00.000000000 Z
11
+ date: 2026-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ahoy_matey