File tree Expand file tree Collapse file tree
apps/meteor/app/push/server
ee/packages/media-calls/src/server Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ export const sendAPN = ({
3434
3535 const note = new apn . Notification ( ) ;
3636
37- if ( notification . voip ) {
37+ if ( notification . useVoipToken ) {
3838 note . expiry = Math . floor ( Date . now ( ) / 1000 ) + 60 ; // Expires in 60 seconds
3939 note . pushType = 'voip' ;
4040 } else {
Original file line number Diff line number Diff line change 1+ import { randomUUID } from 'crypto' ;
2+
13import type {
24 IMediaCall ,
35 IMediaCallNegotiation ,
@@ -212,7 +214,9 @@ class MediaCallDirector {
212214 callerAgent . oppositeAgent = calleeAgent ;
213215 calleeAgent . oppositeAgent = callerAgent ;
214216
215- const call : Omit < IMediaCall , '_id' | '_updatedAt' > = {
217+ const call : Omit < IMediaCall , '_updatedAt' > = {
218+ // Use UUIDs to identify all media calls, for better compatibility with libs that require it (such as React Native's CallKit)
219+ _id : randomUUID ( ) ,
216220 service,
217221 kind : 'direct' ,
218222 state : 'none' ,
You can’t perform that action at this time.
0 commit comments