mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Add return type
This commit is contained in:
parent
f8f2085270
commit
c0e29fe21b
@ -527,7 +527,7 @@ export class DeviceTracker {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Gets a single device */
|
/** Gets a single device */
|
||||||
async deviceForId(userId: string, deviceId: string, hsApi: HomeServerApi, log: ILogItem) {
|
async deviceForId(userId: string, deviceId: string, hsApi: HomeServerApi, log: ILogItem): Promise<DeviceKey | undefined> {
|
||||||
/**
|
/**
|
||||||
* 1. If the device keys are outdated, we will fetch all the keys and update them.
|
* 1. If the device keys are outdated, we will fetch all the keys and update them.
|
||||||
*/
|
*/
|
||||||
@ -595,7 +595,7 @@ export class DeviceTracker {
|
|||||||
return deviceKey;
|
return deviceKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
async deviceForCurveKey(userId: string, key: string, hsApi: HomeServerApi, log: ILogItem) {
|
async deviceForCurveKey(userId: string, key: string, hsApi: HomeServerApi, log: ILogItem): Promise<DeviceKey | undefined> {
|
||||||
const txn = await this._storage.readTxn([
|
const txn = await this._storage.readTxn([
|
||||||
this._storage.storeNames.deviceKeys,
|
this._storage.storeNames.deviceKeys,
|
||||||
this._storage.storeNames.userIdentities,
|
this._storage.storeNames.userIdentities,
|
||||||
|
Loading…
Reference in New Issue
Block a user