How to update channel once last message read?

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?

════════════════════════════════════════════════════════════════════════════════

AmityChatClient.newChannelRepository()

          .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.

Hello,

I m currently using amity flutter dsk version 7.7.1
I am creating community channels like below.

builder = AmityChatClient.newChannelRepository()
.createChannel()
.communityType()
.withChannelId(groupModel.channelId!)
.displayName(groupModel.groupName ?? “”.trim())
.userIds(userIds)

Map<String, dynamic> metadata = {};
metadata[“friends”] = friendsMap;
metadata[“isGroup”] = true;
metadata[“eventId”] = groupModel.moveId;

builder.metadata(metadata);

try {
final response = await builder.create();
debugPrint(“Channel creation is successfull: $response”);
// ProgressDialogUtils.dismissProgressDialog();
} catch (error) {
debugPrint(“==> $error”);
showStyledToast(“$error”);
}

When other members joins this channel using channel id
It behaves like separate entity for all users.

Can you please guild us on this?

Hello @Jeckym , Thank you for the details. To help us review this issue further, could you please confirm:

  • Are users joining the same channelId, or creating the channel again with the same code?
  • What is your expected behavior — should all users share one common channel?
  • If possible, please share a short screen recording or screenshot of the issue.

Once we have this information, we’ll check and advise accordingly.