mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 11:15:53 +03:00
Log when turn creds expire
Which, due to how special the js-sdk API is, needs to be done accross two different projects.
This commit is contained in:
parent
5793f55090
commit
90af6ddcce
1 changed files with 2 additions and 0 deletions
|
@ -629,6 +629,8 @@ export default class CallHandler {
|
||||||
const mappedRoomId = (await VoipUserMapper.sharedInstance().getOrCreateVirtualRoomForRoom(roomId)) || roomId;
|
const mappedRoomId = (await VoipUserMapper.sharedInstance().getOrCreateVirtualRoomForRoom(roomId)) || roomId;
|
||||||
logger.debug("Mapped real room " + roomId + " to room ID " + mappedRoomId);
|
logger.debug("Mapped real room " + roomId + " to room ID " + mappedRoomId);
|
||||||
|
|
||||||
|
const timeUntilTurnCresExpire = MatrixClientPeg.get().getTurnServersExpiry() - Date.now();
|
||||||
|
console.log("Current turn creds expire in " + timeUntilTurnCresExpire + " seconds");
|
||||||
const call = createNewMatrixCall(MatrixClientPeg.get(), mappedRoomId);
|
const call = createNewMatrixCall(MatrixClientPeg.get(), mappedRoomId);
|
||||||
|
|
||||||
this.calls.set(roomId, call);
|
this.calls.set(roomId, call);
|
||||||
|
|
Loading…
Reference in a new issue