Skip to content

Commit 8a0adda

Browse files
regression: missing "duration" and "success" information for voice calls (#37100)
1 parent ccfe416 commit 8a0adda

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

packages/core-typings/src/mediaCalls/IMediaCall.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ export interface IMediaCall extends IRocketChatRecord {
5151

5252
expiresAt: Date;
5353

54+
/** The timestamp of the moment the callee accepted the call */
55+
acceptedAt?: Date;
56+
/** The timestamp of the moment either side reported the call as active for the first time */
57+
activatedAt?: Date;
58+
5459
callerRequestedId?: string;
5560
parentCallId?: string;
5661

packages/models/src/models/MediaCalls.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ export class MediaCallsRaw extends BaseRaw<IMediaCall> implements IMediaCallsMod
8282
$set: {
8383
'state': 'accepted',
8484
'callee.contractId': calleeContractId,
85+
'acceptedAt': new Date(),
8586
expiresAt,
8687
},
8788
},
@@ -97,6 +98,7 @@ export class MediaCallsRaw extends BaseRaw<IMediaCall> implements IMediaCallsMod
9798
{
9899
$set: {
99100
state: 'active',
101+
activatedAt: new Date(),
100102
expiresAt,
101103
},
102104
},

0 commit comments

Comments
 (0)