feat: Implement a new chat widget with enhanced encryption handling and supporting utility scripts, replacing the old chat page.

This commit is contained in:
Christomatt
2026-01-27 08:07:32 +01:00
parent f758421748
commit 75a2d87d9a
12 changed files with 739 additions and 854 deletions
+19
View File
@@ -0,0 +1,19 @@
import { db, users } from './src/db';
import { eq } from 'drizzle-orm';
async function checkKeys() {
const allUsers = await db.select({
handle: users.handle,
hasChatPublicKey: users.chatPublicKey,
hasChatPrivateKeyEncrypted: users.chatPrivateKeyEncrypted,
}).from(users);
console.log('Users and their chat keys:');
allUsers.forEach(u => {
console.log(`- ${u.handle}: chatPublicKey=${!!u.hasChatPublicKey}, chatPrivateKeyEncrypted=${!!u.hasChatPrivateKeyEncrypted}`);
});
process.exit(0);
}
checkKeys().catch(console.error);