Thread reply isn't removed immediately after hard delete #2478
Labels
🐞 Bug
An issue or PR related to a bug
🌐 SDK: StreamChat (LLC)
Tasks related to the StreamChat LLC SDK
What did you do?
Precondition: I'm using StreamChatUI. I've implemented a custom message delete action (confirms to
ChatMessageActionItem
protocol) which performs hard delete of message instead of soft delete.Steps to reproduce:
What did you expect to happen?
The reply message is completely removed (from remote and local storage). In the chat I don't see "Reply" button under the message bubble (a parent message of the created thread on the 1st step).
What happened instead?
The reply message is just marked as deleting. It's removed from backend, but it's not removed from local storage (Core Data).
It looks like
channel
property isnil
for removing message.MessageRepository.saveSuccessfullyDeletedMessage
implementation expectschannel
is not nil for deleting message. Since it'snil
, the method can't completely remove the message from the local storage and the message just exists withdeleting
localMessageState
.GetStream Environment
GetStream Chat version: 4.25.0
GetStream Chat frameworks: StreamChat, StreamChatUI
iOS version: 16.2
Swift version: 5.6
Xcode version: 14.2
Device: iPhone 14 Pro
The text was updated successfully, but these errors were encountered: