The new chat details pane gives you all the information without leaving the conversation. Just open a teams chat, from the upper-right corner, select Open chat details to view pinned messages, shared files.
Select the same icon to close the chat details pane.
https://competenz.freshservice.com/support/solutions/articles/5000096962