diff --git a/assets/js/pages/conversations/main.js b/assets/js/pages/conversations/main.js index b9513098..077e072c 100644 --- a/assets/js/pages/conversations/main.js +++ b/assets/js/pages/conversations/main.js @@ -50,11 +50,26 @@ ComunicWeb.pages.conversations.main = { //Open the conversation ComunicWeb.pages.conversations.conversation.open(id, rightArea); + + //Update website URI + ComunicWeb.common.page.update_uri("Conversations", "conversations/" + id); } //Display the list of conversation ComunicWeb.pages.conversations.listPane.display(leftArea, { opener: conversationOpener }); + + //Check if a conversation has to be opened + if(args.subfolder){ + + //Determine conversation ID + var convID = args.subfolder; + if(convID.includes("/")) + convID = convID.split("/")[0]; + + //Open the conversation + conversationOpener(Number(convID)); + } } } \ No newline at end of file