added toast for loading and fixed chathistory

This commit is contained in:
Dhravya 2024-06-24 23:31:44 -05:00
parent 3d01911315
commit 657ced2a38
2 changed files with 3 additions and 3 deletions

View file

@ -41,7 +41,7 @@ async function Header() {
History
</button>
<div className="absolute p-4 hidden group-hover:block right-0 max-h-svh overflow-auto">
<div className="absolute p-4 hidden group-hover:block right-0 w-full md:w-[400px] max-h-[70vh] overflow-auto">
<div className="bg-[#1F2429] rounded-xl p-2 flex flex-col shadow-lg">
{chatThreads.data.map((thread) => (
<Link

View file

@ -21,7 +21,7 @@ bot.command("start", async (ctx) => {
const cipherd = cipher(user.id.toString());
await ctx.reply(
`Welcome to Supermemory bot. I am here to help you remember things better. Click here to create and link your accont: https://beta.supermemory.ai/signin?telegramUser=${cipherd}`,
`Welcome to Supermemory bot. I am here to help you remember things better. Click here to create and link your account: https://beta.supermemory.ai/signin?telegramUser=${cipherd}`,
);
});
@ -38,7 +38,7 @@ bot.on("message", async (ctx) => {
if (!dbUser) {
await ctx.reply(
`Welcome to Supermemory bot. I am here to help you remember things better. Click here to create and link your accont: https://beta.supermemory.ai/signin?telegramUser=${cipherd}`,
`Welcome to Supermemory bot. I am here to help you remember things better. Click here to create and link your account: https://beta.supermemory.ai/signin?telegramUser=${cipherd}`,
);
return;