Plugins: scope SDK imports and harden Matrix routing

This commit is contained in:
Gustavo Madeira Santana
2026-03-09 00:54:57 -04:00
parent a2edb0ebfb
commit 86f18afafa
42 changed files with 775 additions and 203 deletions

View File

@@ -14,6 +14,7 @@ async function main() {
password: auth.password,
deviceId: auth.deviceId,
encryption: false,
accountId: auth.accountId,
});
const targetUserId = process.argv[2]?.trim() || "@user:example.org";

View File

@@ -25,6 +25,7 @@ async function main() {
password: auth.password,
deviceId: auth.deviceId,
encryption: true,
accountId: auth.accountId,
});
const initCrypto = (client as unknown as { initializeCryptoIfNeeded?: () => Promise<void> })
.initializeCryptoIfNeeded;

View File

@@ -23,6 +23,7 @@ async function main() {
password: auth.password,
deviceId: auth.deviceId,
encryption: false,
accountId: auth.accountId,
});
try {

View File

@@ -31,6 +31,7 @@ async function main() {
password: auth.password,
deviceId: auth.deviceId,
encryption: true,
accountId: auth.accountId,
});
const stamp = new Date().toISOString();

View File

@@ -26,6 +26,7 @@ async function main() {
password: auth.password,
deviceId: auth.deviceId,
encryption: true,
accountId: auth.accountId,
});
const stamp = new Date().toISOString();

View File

@@ -40,6 +40,7 @@ async function main() {
password: auth.password,
deviceId: auth.deviceId,
encryption: true,
accountId: auth.accountId,
});
try {

View File

@@ -21,6 +21,7 @@ async function main() {
password: auth.password,
deviceId: auth.deviceId,
encryption: false,
accountId: auth.accountId,
});
try {