getDraftMessageByConversationId

suspend fun getDraftMessageByConversationId(context: Context, conversationId: Int?): STWBaseMessage?

Call this method to retrieve the draft message given conversationId from local Database represented by STWBaseMessage.

This method should be called only from a coroutine or another suspend function

Return

Draft message represented by STWBaseMessage or null

See also

Parameters

context

The application context

conversationId

The conversation ID