From fc83c6a33ff0ff046ee1f3c285c9370920a756cf Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 22 Nov 2017 11:53:17 +0100 Subject: Ping should work when you joined a room Otherwise your session times out while chatting and you can not receive and post new messages after the 30 second timeout on your session Signed-off-by: Joas Schilling --- js/signaling.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js') diff --git a/js/signaling.js b/js/signaling.js index af7c13c65..f9a3187ed 100644 --- a/js/signaling.js +++ b/js/signaling.js @@ -463,12 +463,12 @@ * @private */ InternalSignaling.prototype._pingCall = function() { - if (!this.currentCallToken) { + if (!this.currentRoomToken) { return; } $.ajax({ - url: OC.linkToOCS('apps/spreed/api/v1/call', 2) + this.currentCallToken + '/ping', + url: OC.linkToOCS('apps/spreed/api/v1/call', 2) + this.currentRoomToken + '/ping', method: 'POST' }).done(function() { this.pingFails = 0; -- cgit v1.2.3