working ListMessagesMatchingQuery