{# a first contact waiting for a decision: who wants what of which agent, through where, the first message whole, and the decision; until it is let in, the agent sends only what it is set to, or nothing #} {% set first = opened.history.messages[0] if opened.history.messages else none %} {% set who = m.named(conversation) | trim %}
{{ t.text("chats.wants." ~ conversation.kind, {"who": "%s" | format(who | e), "agent": "%s" | format(agent.name | e)}) | safe }}
{% if first %}{% set from = m.who(first.sender) | trim %}