From e9e403483d61f8135fec0625ea54b16ed7189952 Mon Sep 17 00:00:00 2001 From: Chris Heo Date: Thu, 5 Jun 2025 12:22:04 -0700 Subject: [PATCH] no mark as delivered if disableMarkAsDelivered is set to true --- .../GroupChannelList/context/GroupChannelListProvider.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/GroupChannelList/context/GroupChannelListProvider.tsx b/src/modules/GroupChannelList/context/GroupChannelListProvider.tsx index f2980c9ba..f89923387 100644 --- a/src/modules/GroupChannelList/context/GroupChannelListProvider.tsx +++ b/src/modules/GroupChannelList/context/GroupChannelListProvider.tsx @@ -120,7 +120,11 @@ export const GroupChannelListManager: React.FC = const channelListDataSource = useGroupChannelListDataSource(sdk, { collectionCreator: getCollectionCreator(sdk, channelListQueryParams), - markAsDelivered: (channels) => channels.forEach(scheduler.push), + markAsDelivered: (channels) => { + if (!config.disableMarkAsDelivered) { + channels.forEach(scheduler.push); + } + }, onChannelsDeleted: (channelUrls) => { channelUrls.forEach((url) => { if (url === selectedChannelUrl) onChannelSelect(null);