Issues to set the current product in chat

Hello, I created marketplace and when user clicks on the chat from the current product page it displays chat and current product about which the user is asking but when user klicks on the chat from chat screen it doen’t show the current product about which user was chatting before. How can I set that when the user goes from chat page he is able to see the product about which he was chatting before with somebody?