mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-11-20 03:25:52 +01:00
we pass Member as a DeviceKey here, so also create the right getters
This commit is contained in:
parent
82a7c9d4bf
commit
b52489cc90
@ -183,6 +183,16 @@ export class Member {
|
||||
return this.callDeviceMembership.device_id;
|
||||
}
|
||||
|
||||
/** @internal, to emulate deviceKey properties when calling formatToDeviceMessagesPayload */
|
||||
get user_id(): string {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
/** @internal, to emulate deviceKey properties when calling formatToDeviceMessagesPayload */
|
||||
get device_id(): string {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
/** session id of the member */
|
||||
get sessionId(): string {
|
||||
return this.callDeviceMembership.session_id;
|
||||
|
Loading…
Reference in New Issue
Block a user