Bummer. Well done on finishing your ride. I'd have gone home.
Assuming you have your phone apart. Put in in a box with tissue and silicone gel packs. Give it a few days and then try the airing cupboard for a week or two. My iPhone was fine after a warm wash with fabric conditioner. It took a fortnight to dry out slowly and properly.