Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2021-02-04 14:26:51 +0300
committerVincent Petry <vincent@nextcloud.com>2021-02-12 17:18:05 +0300
commit2999b5d66559817e57f52be5e02f9cd859da8cc0 (patch)
tree7ed01fbef8b39691f579d30fe08392a0c331406b /src/utils/signaling.js
parenta5b115f943167732356abc4a946a93510915add0 (diff)
Fix redirect when deleting current conversation
When the current conversation was deleted while in a call, or whenever someone has been removed from a room, the redirect now targets the not-found page instead of the one about duplicate session. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'src/utils/signaling.js')
-rw-r--r--src/utils/signaling.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/signaling.js b/src/utils/signaling.js
index 6042e98de..d65ea53d2 100644
--- a/src/utils/signaling.js
+++ b/src/utils/signaling.js
@@ -448,7 +448,7 @@ Signaling.Internal.prototype._startPullingMessages = function() {
} else if (error.response && (error.response.status === 404 || error.response.status === 403)) {
// Conversation was deleted or the user was removed
console.error('Conversation was not found anymore')
- window.location = generateUrl('/apps/spreed/not-found')
+ EventBus.$emit('deletedSessionDetected')
} else if (token) {
if (this.pullMessagesFails === 1) {
this.pullMessageErrorToast = showError(t('spreed', 'Lost connection to signaling server. Trying to reconnect.'), {
@@ -1130,7 +1130,7 @@ Signaling.Standalone.prototype.processRoomListEvent = function(data) {
return
}
console.error('User or session was removed from the conversation, redirecting')
- EventBus.$emit('duplicateSessionDetected')
+ EventBus.$emit('deletedSessionDetected')
break
}
// eslint-disable-next-line no-fallthrough