From de610ecc6be2b3f6d88e491254386abfdeceb692 Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Sat, 11 Feb 2023 15:52:40 -0600 Subject: [PATCH] Redirect to token revoked page when the realtime connection sees a failure This way people get some context for why they got kicked out during the Gitter migration, see https://github.com/vector-im/roadmap/issues/26 --- public/js/components/realtime.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/components/realtime.js b/public/js/components/realtime.js index 582ef7b240..cddd43d8bd 100644 --- a/public/js/components/realtime.js +++ b/public/js/components/realtime.js @@ -77,7 +77,7 @@ var accessTokenFailureExtension = { window.alert( `Realtime communications with the server have been disconnected. ${message.error}` ); - logout(); + logout('/login/token-revoked'); } }