Observe active conversations
Get the list of ConversationId
for open/active conversations.
Note: The feature to expose
id
s for this call is not yet implemented for
iOS.
For the time being, you can use the onUnreadTotalChange
event to listen for
changes in the total number of unread messages. This will allow you to determine
if there are any active conversations.
import { KustomerEventEmitter } from 'kustomer-react-native';
KustomerEventEmitter.addListener('onUnreadTotalChange', (data) => {
console.log('onUnreadTotalChange', data.count);
});
Updated almost 2 years ago