File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
core-typings/src/mediaCalls Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 } ,
You can’t perform that action at this time.
0 commit comments