feat: Enable template variables in channel greeting messages (#6971)
This commit is contained in:
@@ -13,12 +13,13 @@ module Liquidable
|
||||
'contact' => ContactDrop.new(conversation.contact),
|
||||
'agent' => UserDrop.new(sender),
|
||||
'conversation' => ConversationDrop.new(conversation),
|
||||
'inbox' => InboxDrop.new(inbox)
|
||||
'inbox' => InboxDrop.new(inbox),
|
||||
'account' => AccountDrop.new(conversation.account)
|
||||
}
|
||||
end
|
||||
|
||||
def liquid_processable_message?
|
||||
content.present? && message_type == 'outgoing'
|
||||
content.present? && (message_type == 'outgoing' || message_type == 'template')
|
||||
end
|
||||
|
||||
def process_liquid_in_content
|
||||
|
||||
Reference in New Issue
Block a user