1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

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.
This commit is contained in:
David Baker
2021-02-08 16:12:39 +00:00
parent ed0be0cf84
commit 7b5b851db0

View File

@@ -211,8 +211,8 @@ export class CallError extends Error {
} }
} }
function genCallID() { function genCallID(): string {
return Date.now() + randomString(16); return Date.now().toString() + randomString(16);
} }
/** /**