I currently I am using V4 but it seems the const count = await sb.groupChannel.getTotalUnreadMessageCount(); and const count = await sb.groupChannel.getTotalUnreadChannelCount(); are not usable requires params but it not stated in V4 documentation.
I did some double checking on this issue and found that I can call getTotalUnreadChannelCount() without any issues as it does not take in any parameters.
However, getTotalUnreadMessageCount() does take in an instance of TotalUnreadMessageCountParams. Which looks like this:
Just a quick note. In addition to the documentation changes, I spoke with our Engineering team and we are going to make the parameters for getTotalUnreadMessageCount() optional rather than mandatory. This way you’re not required to pass in an empty object.
Hi Tyler, yes please because now the parameter of channelCustomTypesFilter are required if we set an empty object or [‘’] the unread count is always zero.