FIX: ensures automation can send chat message (#23478)
It's been broken in 243793ec6e
. Sadly it's not very practical to write cross plugins tests.
This commit is contained in:
parent
4db5310135
commit
7bcf934765
|
@ -417,10 +417,10 @@ after_initialize do
|
|||
placeholders = { channel_name: channel.title(sender) }.merge(context["placeholders"] || {})
|
||||
|
||||
creator =
|
||||
Chat::CreateMessage.call(
|
||||
chat_channel: channel,
|
||||
::Chat::CreateMessage.call(
|
||||
chat_channel_id: channel.id,
|
||||
guardian: sender.guardian,
|
||||
content: utils.apply_placeholders(fields.dig("message", "value"), placeholders),
|
||||
message: utils.apply_placeholders(fields.dig("message", "value"), placeholders),
|
||||
)
|
||||
|
||||
if creator.failure?
|
||||
|
|
Loading…
Reference in New Issue