From 7b5b851db0147cafc5ee601a7220c92d84a785bf Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 8 Feb 2021 16:12:39 +0000 Subject: [PATCH] Fix call ID NaN We were seeing call IDs of NaN in the wild somehow... hopefully this should make sure they're all actually strings. --- src/webrtc/call.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webrtc/call.ts b/src/webrtc/call.ts index 69b72355d..1b756162f 100644 --- a/src/webrtc/call.ts +++ b/src/webrtc/call.ts @@ -211,8 +211,8 @@ export class CallError extends Error { } } -function genCallID() { - return Date.now() + randomString(16); +function genCallID(): string { + return Date.now().toString() + randomString(16); } /**