Your texts will mostly be used as evidence against your friend to establish intent to sell, however, you too could be charged with a crime in the future. You should speak with a local experienced criminal defense attorney to guide you through this delicate process. There are actions you can and should be taking.