From b52489cc9096fddd93fc5254bb5f3120d5763468 Mon Sep 17 00:00:00 2001 From: Bruno Windels <274386+bwindels@users.noreply.github.com> Date: Tue, 11 Apr 2023 16:22:20 +0200 Subject: [PATCH] we pass Member as a DeviceKey here, so also create the right getters --- src/matrix/calls/group/Member.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/matrix/calls/group/Member.ts b/src/matrix/calls/group/Member.ts index 5d67bafe..d08a3988 100644 --- a/src/matrix/calls/group/Member.ts +++ b/src/matrix/calls/group/Member.ts @@ -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;