Show Replies List
Open the in-app conversations screen from a Support or Messages button in your KMP app, and check whether the user has any chats before you show it.
Last updated
Open the in-app conversations screen from a Support or Messages button in your KMP app, and check whether the user has any chats before you show it.
Call RepliesKmp.show() to open the in-app conversations screen (e.g. from a “Support” or “Messages” button):
RepliesKmp.show()If the user has no conversations, behavior may depend on the native SDK (e.g. nothing happens or an empty state is shown).
Before showing a “Messages” entry or badge, you can check whether the user has any conversations:
scope.launch {
if (RepliesKmp.hasChats()) {
showRepliesMenuItem()
}
}Combine with RepliesKmp.onNewReply and RepliesKmp.getUnreadRepliesCount() to keep a badge or menu visibility in sync.
Last updated