we pass Member as a DeviceKey here, so also create the right getters

This commit is contained in:
Bruno Windels 2023-04-11 16:22:20 +02:00
parent 82a7c9d4bf
commit b52489cc90

View File

@ -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;