Check if the current connection is the main or alternate in getMessages.