Fix for being unable to send messages in airplane mode