Turn off the accepted rules and fix the design tokens, alt text, and last type errors. [skip build]
Checks / checks (push) Successful in 2m18s
Trigger cinny-mobile / dispatch (push) Successful in 1s

This commit is contained in:
2026-11-03 01:10:06 +11:00
parent 3db9b499af
commit 17d1eef572
73 changed files with 283 additions and 217 deletions
+3 -3
View File
@@ -2,7 +2,7 @@ import { createClient, MatrixClient, IndexedDBStore, IndexedDBCryptoStore } from
import { cryptoCallbacks } from './secretStorageKeys';
import { clearNavToActivePathStore } from '../app/state/navToActivePath';
import { Session, getSessionStoreName } from '../app/state/sessions';
import { Session, Sessions, getSessionStoreName } from '../app/state/sessions';
import { getSettings } from '../app/state/settings';
import { recordPacket } from '../app/state/debugPackets';
import { promptDialog } from '../app/state/dialog';
@@ -305,7 +305,7 @@ export const initClient = async (session: Session): Promise<MatrixClient> => {
`${session.userId}@${session.deviceId}`,
);
await mx.initRustCrypto({
storagePrefix: `${session.userId}@${session.deviceId}`,
cryptoDatabasePrefix: `${session.userId}@${session.deviceId}`,
});
console.log('[initMatrix] ✅ Client initialized successfully!');
@@ -430,7 +430,7 @@ export const logoutClient = async (mx: MatrixClient) => {
await import('../app/state/utils/atomWithLocalStorage');
const userId = mx.getSafeUserId();
const allSessions = getLocalStorageItem('matrixSessions', []);
const allSessions = getLocalStorageItem<Sessions>('matrixSessions', []);
const currentUserId = getLocalStorageItem('currentSessionUserId', undefined);
// Remove the current session