getMessageByAttachmentId

open fun getMessageByAttachmentId(@NonNull context: Context, @NonNull attachmentId: String): BaseMessage

Call this method to retrieve the message represented by BaseMessage object from local dataBase given an attachmentId

Return

The message represented by BaseMessage or null

Parameters

context

The application context

attachmentId

The attachment ID