diff options
author | Joas Schilling <coding@schilljs.com> | 2017-11-22 11:53:17 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-11-22 11:54:53 +0100 |
commit | fc83c6a33ff0ff046ee1f3c285c9370920a756cf (patch) | |
tree | 4011a9b9f332719a46eb44ff67a1a2da0dd60fcf /js | |
parent | b8a583d754c3eeda8060e5f91fb13bc2ab0208bd (diff) |
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 <coding@schilljs.com>
Diffstat (limited to 'js')
-rw-r--r-- | js/signaling.js | 4 |
1 files changed, 2 insertions, 2 deletions
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; |