feat: add functionality to open conversation in a new tab on navigation

This commit is contained in:
Danny Avila 2025-04-27 01:55:42 -04:00
parent e8f8ab0ba0
commit 17e2e0eee5
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956

View file

@ -102,6 +102,9 @@ export default function Conversation({
const handleNavigation = (ctrlOrMetaKey: boolean) => {
if (ctrlOrMetaKey) {
toggleNav();
const baseUrl = window.location.origin;
const path = `/c/${conversationId}`;
window.open(baseUrl + path, '_blank');
return;
}