Skip to content

Commit d990aca

Browse files
use UUIDs
1 parent 380f0e7 commit d990aca

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

apps/meteor/app/push/server/apn.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 {

ee/packages/media-calls/src/server/CallDirector.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { randomUUID } from 'crypto';
2+
13
import 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',

0 commit comments

Comments
 (0)