feat: Implement a new chat widget with enhanced encryption handling and supporting utility scripts, replacing the old chat page.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { db, chatMessages } from './src/db';
|
||||
import { isNull } from 'drizzle-orm';
|
||||
|
||||
async function cleanOldMessages() {
|
||||
console.log('Deleting old RSA-encrypted messages...');
|
||||
|
||||
const result = await db.delete(chatMessages)
|
||||
.where(isNull(chatMessages.senderChatPublicKey));
|
||||
|
||||
console.log('Deleted old messages. Now only E2E encrypted messages remain.');
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
cleanOldMessages().catch(console.error);
|
||||
Reference in New Issue
Block a user