When sharing files via Teams chat, there are a couple of issues to be aware of. This article outlines a couple of scenarios that we have encountered.
Scenario
1: If you have a file in your OneDrive, then share via chat you are
actually linking that person to the same file so there are no version
control issues, any changes are stored in your OneDrive file. The person
you are chatting with will see the file instead of the link.
If you want to remove the permissions after you have shared a file via chat:
Scenario 2: If you are using the sync option and want to share a file via chat from within a channel that is synced to your file explorer (or Finder) then you have to choose the "upload from my computer" option instead of the OneDrive option. This creates a duplicate of the file rather than a link to it so you will have version control issues.
The correct way to share the file from the channel would be to use the SharePoint "Share" option which will eliminate the duplicate file issue.