зеркало из https://github.com/nextcloud/spreed.git
Merge pull request #3058 from nextcloud/bugfix/3036/broken-redirect-on-join-error
Change redirect in case an error happens when joining a call
This commit is contained in:
Коммит
a8d5a285f7
|
@ -266,8 +266,10 @@ Signaling.Base.prototype.joinCall = function(token, flags) {
|
|||
}.bind(this))
|
||||
.catch(function() {
|
||||
reject(new Error())
|
||||
// Room not found or maintenance mode
|
||||
OC.redirect(OC.generateUrl('apps/spreed'))
|
||||
// Server maintenance, lobby kicked in, or room not found.
|
||||
// We first redirect to the conversation again and that
|
||||
// will then show the proper error message to the user.
|
||||
OC.redirect(OC.generateUrl('call/' + token))
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче