get Last Message Id
open fun getLastMessageId(@NonNull context: Context, @NonNull conversationId: String): String
Content copied to clipboard
Call this method to retrieve the last inserted message id in the associated conversation from local Database.
The returned message can be :
- a business message
- a VoIP message
- an emergency message (ManDown or Emergency alert)
- an update conversation name message
Return
The last message id
Parameters
context
The application context
conversation Id
The conversation ID