mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-11-20 03:25:52 +01:00
Add getter for device-id
This commit is contained in:
parent
ed3772d67b
commit
3a1ffe8544
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user