From 53f6041f42ac36b5d69fc05cc66618ea0fe67a88 Mon Sep 17 00:00:00 2001 From: Reto Date: Sun, 13 Nov 2022 07:34:41 +0100 Subject: [PATCH] SearchResults: remove dead code (#4639) Nachtalb put some infra in place that was never actually working. It errors out when a user clicks on a message. Remove the offending code, but keep it all in place so that we can improve on it. --- client/components/Windows/SearchResults.vue | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/client/components/Windows/SearchResults.vue b/client/components/Windows/SearchResults.vue index a9dbdb8f..3e493396 100644 --- a/client/components/Windows/SearchResults.vue +++ b/client/components/Windows/SearchResults.vue @@ -236,20 +236,6 @@ export default defineComponent({ // TODO: Implement jumping to messages! // This is difficult because it means client will need to handle a potentially nonlinear message set // (loading IntersectionObserver both before AND after the messages) - router - .push({ - name: "MessageList", - params: { - id: channel.value?.id, - }, - query: { - focused: id, - }, - }) - .catch((e) => { - // eslint-disable-next-line no-console - console.error(`Failed to navigate to message ${id}`, e); - }); }; watch(