- Preparing search index...
- The search index is not available
matrix-js-sdk
Methods
addEndToEndInboundGroupSession
- addEndToEndInboundGroupSession(senderCurve25519Key, sessionId, sessionData, txn): void
-
Parameters
-
senderCurve25519Key: string
-
sessionId: string
-
-
txn: unknown
Returns void
addParkedSharedHistory
- addParkedSharedHistory(roomId, data, txn?): void
-
Parameters
-
roomId: string
-
-
Optional
txn: unknown
Returns void
addSharedHistoryInboundGroupSession
- addSharedHistoryInboundGroupSession(roomId, senderKey, sessionId, txn?): void
-
Parameters
-
roomId: string
-
senderKey: string
-
sessionId: string
-
Optional
txn: unknown
Returns void
countEndToEndSessions
- countEndToEndSessions(txn, func): void
-
Parameters
-
txn: unknown
-
func: ((count) => void)
-
- (count): void
-
Returns void
Returns void
countSessionsNeedingBackup
- countSessionsNeedingBackup(txn?): Promise<number>
-
Returns Promise<number>
deleteOutgoingRoomKeyRequest
- deleteOutgoingRoomKeyRequest(requestId, expectedState): Promise<null | OutgoingRoomKeyRequest>
-
Parameters
-
requestId: string
-
expectedState: number
doTxn
- doTxn<T>(mode, stores, func, log?): Promise<T>
-
Parameters
-
-
stores: Iterable<string>
-
func: ((txn) => T)
-
filterOutNotifiedErrorDevices
getAccount
- getAccount(txn, func): void
-
Parameters
-
txn: unknown
-
func: ((accountPickle) => void)
-
- (accountPickle): void
-
Parameters
-
accountPickle: null | string
Returns void
Returns void
getAllEndToEndInboundGroupSessions
- getAllEndToEndInboundGroupSessions(txn, func): void
-
Parameters
-
txn: unknown
-
func: ((session) => void)
-
- (session): void
-
Returns void
Returns void
getAllEndToEndSessions
- getAllEndToEndSessions(txn, func): void
-
Parameters
-
txn: unknown
-
func: ((session) => void)
-
- (session): void
-
Returns void
Returns void
getAllOutgoingRoomKeyRequestsByState
getCrossSigningKeys
- getCrossSigningKeys(txn, func): void
-
Parameters
-
txn: unknown
-
func: ((keys) => void)
-
- (keys): void
-
Returns void
Returns void
getEndToEndDeviceData
- getEndToEndDeviceData(txn, func): void
-
Parameters
-
txn: unknown
-
func: ((deviceData) => void)
-
- (deviceData): void
-
Returns void
Returns void
getEndToEndInboundGroupSession
- getEndToEndInboundGroupSession(senderCurve25519Key, sessionId, txn, func): void
-
Parameters
-
senderCurve25519Key: string
-
sessionId: string
-
txn: unknown
-
func: ((groupSession, groupSessionWithheld) => void)
-
- (groupSession, groupSessionWithheld): void
-
Returns void
Returns void
getEndToEndRooms
- getEndToEndRooms(txn, func): void
-
Parameters
-
txn: unknown
-
func: ((rooms) => void)
-
- (rooms): void
-
Returns void
Returns void
getEndToEndSession
- getEndToEndSession(deviceKey, sessionId, txn, func): void
-
Parameters
-
deviceKey: string
-
sessionId: string
-
txn: unknown
-
func: ((session) => void)
-
- (session): void
-
Returns void
Returns void
getEndToEndSessionProblem
- getEndToEndSessionProblem(deviceKey, timestamp): Promise<null | IProblem>
-
Parameters
-
deviceKey: string
-
timestamp: number
getEndToEndSessions
- getEndToEndSessions(deviceKey, txn, func): void
-
Parameters
-
deviceKey: string
-
txn: unknown
-
func: ((sessions) => void)
-
- (sessions): void
-
Returns void
Returns void
getOrAddOutgoingRoomKeyRequest
getOutgoingRoomKeyRequest
getOutgoingRoomKeyRequestByState
getOutgoingRoomKeyRequestsByTarget
- getOutgoingRoomKeyRequestsByTarget(userId, deviceId, wantedStates): Promise<OutgoingRoomKeyRequest[]>
-
Parameters
-
userId: string
-
deviceId: string
-
wantedStates: number[]
getSecretStorePrivateKey
- getSecretStorePrivateKey<K>(txn, func, type): void
-
Parameters
-
txn: unknown
-
func: ((key) => void)
-
type: K
Returns void
getSharedHistoryInboundGroupSessions
- getSharedHistoryInboundGroupSessions(roomId, txn?): Promise<[senderKey: string, sessionId: string][]>
-
Parameters
-
roomId: string
-
Optional
txn: unknown
Returns Promise<[senderKey: string, sessionId: string][]>
markSessionsNeedingBackup
- markSessionsNeedingBackup(sessions, txn?): Promise<void>
-
storeAccount
- storeAccount(txn, accountPickle): void
-
Parameters
-
txn: unknown
-
accountPickle: string
Returns void
storeCrossSigningKeys
- storeCrossSigningKeys(txn, keys): void
-
Returns void
storeEndToEndDeviceData
- storeEndToEndDeviceData(deviceData, txn): void
-
Returns void
storeEndToEndInboundGroupSession
- storeEndToEndInboundGroupSession(senderCurve25519Key, sessionId, sessionData, txn): void
-
Parameters
-
senderCurve25519Key: string
-
sessionId: string
-
-
txn: unknown
Returns void
storeEndToEndInboundGroupSessionWithheld
- storeEndToEndInboundGroupSessionWithheld(senderCurve25519Key, sessionId, sessionData, txn): void
-
Parameters
-
senderCurve25519Key: string
-
sessionId: string
-
-
txn: unknown
Returns void
storeEndToEndRoom
- storeEndToEndRoom(roomId, roomInfo, txn): void
-
Parameters
-
roomId: string
-
-
txn: unknown
Returns void
storeEndToEndSession
- storeEndToEndSession(deviceKey, sessionId, sessionInfo, txn): void
-
Parameters
-
deviceKey: string
-
sessionId: string
-
-
txn: unknown
Returns void
storeEndToEndSessionProblem
- storeEndToEndSessionProblem(deviceKey, type, fixed): Promise<void>
-
Parameters
-
deviceKey: string
-
type: string
-
fixed: boolean
storeSecretStorePrivateKey
- storeSecretStorePrivateKey<K>(txn, type, key): void
-
Returns void
unmarkSessionsNeedingBackup
- unmarkSessionsNeedingBackup(sessions, txn?): Promise<void>
-
updateOutgoingRoomKeyRequest
- updateOutgoingRoomKeyRequest(requestId, expectedState, updates): Promise<null | OutgoingRoomKeyRequest>
-
Parameters
-
requestId: string
-
expectedState: number
-
Abstraction of things that can store data required for end-to-end encryption