insertMessages

public final Unit insertMessages(List<InsertMessageItem> params, OperationHandler<Boolean> handler)

Batch inserts messages into the local database.

Messages are inserted locally only and are not sent to the server. The channel info (channelType, channelId) is taken from this channel instance.

Parameters

params

List of message items to insert

handler

Callback returning true on success