RefreshReferenceMessageHandler

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:

  1. onLocalMessages - Callback with results for messages found locally

  2. 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.

Functions

Link copied to clipboard
public abstract Unit onError(NCError error)

Called when the operation fails.

Link copied to clipboard
public abstract Unit onLocalMessages(List<ReferenceMessageResult> results)

Called with locally found messages.

Link copied to clipboard
public abstract Unit onRemoteMessages(List<ReferenceMessageResult> results)

Called with remotely fetched messages.