Add getter for device-id

This commit is contained in:
RMidhunSuresh 2023-06-05 11:44:30 +05:30
parent ed3772d67b
commit 3a1ffe8544

View File

@ -677,6 +677,10 @@ export class DeviceTracker {
async getDeviceByCurve25519Key(curve25519Key, txn: Transaction): Promise<DeviceKey | undefined> {
return await txn.deviceKeys.getByCurve25519Key(curve25519Key);
}
get ownDeviceId(): string {
return this._ownDeviceId;
}
}
import {createMockStorage} from "../../mocks/Storage";