Turn off the accepted rules and fix the design tokens, alt text, and last type errors. [skip build]
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user