dispatch("showAlternateMsg", { id: alternatives[Math.max(0, currentIdx - 1)] })} disabled={currentIdx === 0 || loading} >
{currentIdx + 1} / {alternatives.length}
dispatch("showAlternateMsg", { id: alternatives[Math.min(alternatives.length - 1, currentIdx + 1)], })} disabled={currentIdx === alternatives.length - 1 || loading} >
{#if !loading && message.children}
{ if (confirm("Are you sure you want to delete this branch?")) { client .conversations({ id: page.params.id }) .message({ messageId: message.id }) .delete() .then(handleResponse) .then(async () => { await invalidate(UrlDependency.Conversation); }) .catch((err) => { console.error(err); $error = String(err); }); } }} >
{/if}