{#each messages as message, index} {#if expanded[index]}
{#if appLayout?.openPageTab} {/if}
{/if} {/each}