You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-25 05:23:13 +03:00
webrtc/call: Make it much less likely that callIds collide locally
Previously if two calls were constructed within 1ms they could have the same id.
This commit is contained in:
@@ -91,7 +91,7 @@ function MatrixCall(opts) {
|
||||
utils.checkObjectHasKeys(server, ["urls"]);
|
||||
});
|
||||
|
||||
this.callId = "c" + new Date().getTime();
|
||||
this.callId = "c" + new Date().getTime() + Math.random();
|
||||
this.state = 'fledgling';
|
||||
this.didConnect = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user