Check for Existing Chats
API reference for checking whether a user has existing chats in Luciq. Returns a boolean so you surface replies only when relevant.
This method returns a boolean variable that depicts whether or not the user has existing chats.
Replies.hasChats()[LCQReplies hasChats];Replies.hasChats();Replies.hasChats()Replies.hasChats(previousChats=> {
if(previousChats) {
// Has chats
} else {
// Doesn't have chats
}
});final hasChats = Replies.hasChats();Last updated