// Get All Channels
let unreadMessages = await kitty.getUnreadChannelsCount();
- is returning greater than 1
// Get Single Channel - Loop through all fetched channels
const initSingleChannel = async () => {
const result = await kitty.getChannelUnread({ channel: item });
if (result.succeeded) {
// Update state based on redux props and active user
if (_isMounted.current) {
console.log(result.unread)
setUnread(!active && result.unread);
}
} else {
console.error("CHAT KITTY: unread messaged status fetch failed. ", result.error);
return;
}
};
result.unread === false