feat: Implement core chat application UI, including chat, voice, members, DMs, and shared components.
Some checks failed
Build and Release / build-and-release (push) Failing after 0s

This commit is contained in:
Bryan1029384756
2026-02-14 01:57:15 -06:00
parent 6f12f98d30
commit 958cf56b23
51 changed files with 4761 additions and 1858 deletions

View File

@@ -174,9 +174,27 @@ async function decryptBatch(items) {
}));
}
// --- Ed25519 Support Detection ---
let ed25519Supported = null;
async function checkEd25519Support() {
if (ed25519Supported !== null) return ed25519Supported;
try {
await crypto.subtle.generateKey('Ed25519', false, ['sign', 'verify']);
ed25519Supported = true;
} catch {
ed25519Supported = false;
}
return ed25519Supported;
}
// --- Batch Verify ---
async function verifyBatch(items) {
const supported = await checkEd25519Support();
if (!supported) {
return items.map(() => ({ success: true, verified: null }));
}
return Promise.all(items.map(async ({ publicKey, message, signature }) => {
try {
const verified = await verifySignature(publicKey, message, signature);