Latest sdk has implementation of unreadcount for all/single channel and read message.
I am implementing both while unreadcount for all channels , I am getting below error
════════ Exception caught by foundation library ════════════════════════════════
Bad state: GetIt: Object/factory with type ChannelObserveTotalUnreadUseCase is not registered inside GetIt.
(Did you accidentally do GetIt sl=GetIt.instance(); instead of GetIt sl=GetIt.instance;
Did you forget to register it?
.getChannelTotalUnreads()
.listen((unreadInfo) {
// Handle the total unread count
final totalUnreadCount = unreadInfo.unreadCount;
final isMentioned = unreadInfo.isMentioned;
print(totalUnreadCount);
// Do something with the total unread count and mention status
}).onError((error) {
// Handle error
print(error);
});
also wanted to know like I am using message.markRead();
I am fetching all channels to list down, I am showing blue dot in every channel if there is any single unread message.
but how will I get update in liveCollection of channel list?
Hello @Jeckym , We have responded to your inquiry via the email, and will continue to use email as the main communication channel for this case.This way, you won’t need to track updates across multiple platforms.