stream-chat-swift icon indicating copy to clipboard operation
stream-chat-swift copied to clipboard

didChangeCurrentUserUnreadCount not triggered after user deletion

Open NatashaLavrinenko opened this issue 2 years ago • 4 comments

What did you do?

Precondition: user A and user B are members of the channel(as well as several more users) User B left 2 messages in channel and afterwards was deleted by calling deleteUsers method on the backend side, please see all the parameters below:

Screenshot 2023-05-02 at 09 32 54

User A got updates that 2 unread messages were received. After that user B was deleted from GetStream base.

What did you expect to happen?

It's expected that after the user was removed(as well as all his/her messages), didChangeCurrentUserUnreadCount will be called and unread counter will be cleared as the messages of user B were removed(in case the channel is opened, messages from user B are not shown).

What happened instead?

didChangeCurrentUserUnreadCount method is not called, so the wrong unread counter for particular channel is shown.

Please let me know in case more details are needed.

Thanks in advance!

GetStream Chat version: 4.28.0 GetStream Chat frameworks: StreamChat, StreamChatUI iOS version: 16.2 Swift version: 5.6 Xcode version: 14.2 Device: iPhone 11

NatashaLavrinenko avatar May 02 '23 08:05 NatashaLavrinenko

Hi @NatashaLavrinenko ,

We will be looking into it as soon as possible. Will keep you posted 😄

polqf avatar May 02 '23 08:05 polqf

Hey @polqf, Thank you!

NatashaLavrinenko avatar May 02 '23 08:05 NatashaLavrinenko

Hi @NatashaLavrinenko, sorry for the delay in the reponse.

We identified the root cause of the issue, and it has been added to our backlog. We will be fixing it based on priority.

polqf avatar May 23 '23 08:05 polqf

@polqf Could you please also have a look at the following issue described here? Thanks in advance!

NatashaLavrinenko avatar Sep 11 '23 01:09 NatashaLavrinenko