{#each chats as { id, pubkeys, messages }, i (id)} {@const message = messages[0]} {@const others = remove($pubkey, pubkeys)}
{#if others.length === 1}
{:else}
and {others.length - 1} {others.length > 2 ? "others" : "other"}
{/if}
{message.content}
{/each}