From b4080ae638cc3734cb12d530532cceb65de206a8 Mon Sep 17 00:00:00 2001 From: Crimekillz Date: Mon, 29 Apr 2024 19:06:04 +0200 Subject: [PATCH] Unified messaging: Avoid using window.open --- packages/client/src/pages/messaging/messaging-room.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/src/pages/messaging/messaging-room.vue b/packages/client/src/pages/messaging/messaging-room.vue index 41f961b85..a86ae4f8f 100644 --- a/packages/client/src/pages/messaging/messaging-room.vue +++ b/packages/client/src/pages/messaging/messaging-room.vue @@ -364,9 +364,9 @@ onBeforeUnmount(() => { function info() { if (group) { - window.open(`/my/groups/${group.id}`); + window.location.href = `/my/groups/${group.id}`; } else if (user) { - window.open(`/@${user.id}`); + window.location.href = `/@${user.id}`; } }