insertOrIgnoreMessage
abstract suspend fun insertOrIgnoreMessage(message: MessageEntity, updateConversationModifiedDate: Boolean = false): InsertMessageResult
Inserts the message, or ignores if there's already a message with the same MessageEntity.id and MessageEntity.conversationId. There is only one exception where a second message with the same id will not be ignored, and it is when the first message is an asset preview message. In this case, the second message containing the valid encryption keys will be updating and completing the encryption keys and the visibility of the first one.