Leave it disassembled as much as provided by the warranty (usually in the open position with the battery out) on a dry towel for several days. It should (hopefully) be fine after that. If you have any of those silica gel packets around, put those around the phone as well - they'll absorb moisture.