retrieveAllMessages method only keeps one batch of synced messages in memory
after sync, keep target messages in memory the same way the message manager does