interceptOnInsertIncomingMessage

public abstract boolean interceptOnInsertIncomingMessage(ChannelType type, String targetId, String senderId, MessageReceivedStatusInfo receivedStatus, MessageContent content, long sentTime)

Called before an incoming message is inserted into the local database.

Return

true to intercept; false to pass through

Parameters

type

channel type

targetId

target channel ID

senderId

sender user ID

receivedStatus

received status

content

message content

sentTime

sent timestamp