{# the list's pane: the conversations let in or waiting, or what the search found; it follows the newest message of the agents it shows, and why some are not there #} {% if "q" in request.query_params %}
{% if chosen %}{% endif %} {% set kept_in = [] %}{% for row in threads %}{% if ref(row.agent.id) ~ "." ~ ref(row.conversation.thread_id) == within %}{% set _ = kept_in.append(row) %}{% endif %}{% endfor %} {% set kept_from = members | selectattr("0", "equalto", sender) | list %}
{{ t.text("chats.search.found", {"n": found}) | safe }}
{{ m.away(away, computers) }}
{% include "chats/hits.html" %}
{% else %}
{{ t.text("chats.tab.chats") }} {{ total }} {{ t.text("chats.tab.contacts") }}{% if pending %} {{ pending }}{% endif %} {% set picked = scoped if chosen else [] %}
{{ m.away(away, computers) }}
{% include "chats/rows.html" %}
{% if tab == "contacts" %}

{{ t.text("chats.contacts.hint") }}

{% endif %} {% endif %}