Skip to content

Commit

Permalink
Desktop: added_time and speaker_time are not optional
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-signal committed Jan 26, 2024
1 parent 67fb401 commit 5869641
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/node/ringrtc/Service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 5869641

Please sign in to comment.