We fly at low levels – usually 1500′ – where the air pressure is not that different from ground level.
The FAA guidance for pilots and passengers suggests the “recommended wait time before going to flight altitudes up to 8,000 feet is at least 12 hours after diving that did not require a controlled ascent (i.e., non-decompression stop diving), and at least 24 hours after diving that required a controlled ascent (i.e., decompression stop diving).”