{#each messages as message, i}
{:else}
{/each} {#if pending}
{/if}