Refresh Reference Message Handler
Refresh referenced (quoted) message callback.
When a message contains a reference to another message, this handler refreshes the referenced message content. The refresh operates in two stages:
onLocalMessages - Callback with results for messages found locally
onRemoteMessages - Callback with results for messages fetched from the server
If all messages exist locally, only onLocalMessages is called. If some messages are not found locally, onRemoteMessages is called additionally.