{#if !isLoggedIn}
Log in to see your messages.
{:else if $inboxLoading}
{:else if conversationList.length === 0}
No conversations yet.
{:else}
{#each conversationList as conv (conv.pubkey)}
selectConversation(conv.pubkey)}
>
{#if getAvatar(conv.pubkey)}
})
{:else}
{getDisplayName(conv.pubkey).charAt(0).toUpperCase()}
{/if}
{truncateMessage(conv.lastMessage?.decrypted || conv.lastMessage?.content || '')}
{#if conv.unreadCount > 0}
{conv.unreadCount}
{/if}
{/each}
{/if}