From 5869641cfc3934033e9a98ba6abc9045ccb661f3 Mon Sep 17 00:00:00 2001 From: Jim Gustafson Date: Mon, 22 Jan 2024 15:21:46 -0800 Subject: [PATCH] Desktop: added_time and speaker_time are not optional --- src/node/ringrtc/Service.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/node/ringrtc/Service.ts b/src/node/ringrtc/Service.ts index 559c4777..26134407 100644 --- a/src/node/ringrtc/Service.ts +++ b/src/node/ringrtc/Service.ts @@ -2172,16 +2172,24 @@ export class RemoteDeviceState { presenting: boolean | undefined; sharingScreen: boolean | undefined; videoAspectRatio: number | undefined; // Float - addedTime: string | undefined; // unix millis (to be converted to a numeric type) - speakerTime: string | undefined; // unix millis; 0 if they've never spoken (to be converted to a numeric type) + addedTime: string; // unix millis (to be converted to a numeric type) + speakerTime: string; // unix millis; 0 if they've never spoken (to be converted to a numeric type) forwardingVideo: boolean | undefined; isHigherResolutionPending: boolean; - constructor(demuxId: number, userId: Buffer, mediaKeysReceived: boolean) { + constructor( + demuxId: number, + userId: Buffer, + addedTime: string, + speakerTime: string, + mediaKeysReceived: boolean + ) { this.demuxId = demuxId; this.userId = userId; this.mediaKeysReceived = mediaKeysReceived; this.audioLevel = 0; + this.addedTime = addedTime; + this.speakerTime = speakerTime; this.isHigherResolutionPending = false; } }