{#each elements as { type, id, value, showPubkey } (id)}
{#if type === "date"}
{value}
{:else}
{@const event = assertEvent(value)}
{@const thunk = $thunks[event.id]}
{/if}
{/each}
{#if loading}
Looking for messages...
{:else}
End of message history
{/if}