{% macro avatar(src, cls="cg-avatar") -%}
{%- endmacro %}
{% macro date_label(d) -%}
{{ d.strftime("%B ") }}{{ d.day }}, {{ d.year }}
{%- endmacro %}
{% macro time_label(ts) -%}
{{ ts.strftime("%I:%M").lstrip("0") }} {{ ts.strftime("%p") }}
{%- endmacro %}
{% macro time_24(ts) -%}
{{ ts.strftime("%H:%M") }}
{%- endmacro %}
{# Delivery ticks for messenger self-bubbles. `read_cls` colors the read state. #}
{% macro ticks(status, read_cls="cg-tick-read") -%}
{%- if status.value == "sending" %}π
{%- elif status.value == "sent" %}β
{%- elif status.value == "delivered" %}ββ
{%- elif status.value == "read" %}ββ
{%- endif -%}
{%- endmacro %}
{% macro reactions(msg, cls="cg-reactions") -%}
{% if msg.reactions %}