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.
This commit is contained in:
Reto 2022-11-13 07:34:41 +01:00 committed by GitHub
parent 0fa203569a
commit 53f6041f42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(