{#if (activeThreadId && activeThread) || pendingThreadParentMessageId}
{threadName}
{#if pendingParentMessage && !activeThreadId}
Starting thread from:
{/if}
{#if chat.typingUsers.length > 0}
{#if chat.typingUsers.length === 1} {chat.typingUsers[0].name || "Someone"} {:else if chat.typingUsers.length === 2} {chat.typingUsers[0].name || "Someone"} and {chat.typingUsers[1].name || "Someone"} {:else if chat.typingUsers.length === 3} {chat.typingUsers[0].name || "Someone"}, {chat.typingUsers[1].name || "Someone"} and {chat.typingUsers[2].name || "Someone"} {:else} Several people {/if}
{chat.typingUsers.length === 1 ? "is" : "are"} typing...
{/if}
{/if}