From c0e29fe21b57530aa3d6b96ff2139e82307965c1 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Tue, 13 Jun 2023 13:26:39 +0530 Subject: [PATCH] Add return type --- src/matrix/e2ee/DeviceTracker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/matrix/e2ee/DeviceTracker.ts b/src/matrix/e2ee/DeviceTracker.ts index 82f9ce02..47902dd5 100644 --- a/src/matrix/e2ee/DeviceTracker.ts +++ b/src/matrix/e2ee/DeviceTracker.ts @@ -527,7 +527,7 @@ export class DeviceTracker { } /** 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 { /** * 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; } - async deviceForCurveKey(userId: string, key: string, hsApi: HomeServerApi, log: ILogItem) { + async deviceForCurveKey(userId: string, key: string, hsApi: HomeServerApi, log: ILogItem): Promise { const txn = await this._storage.readTxn([ this._storage.storeNames.deviceKeys, this._storage.storeNames.userIdentities,