Chat from Files
In the Files app, you can chat about a file in the sidebar while you edit it. You first have to join the chat.

You can then chat with other people, even while you are editing the file.
In Chat, a conversation will be created for the file. You can chat from there, or go back to the file using the ... menu in the top-right.