Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CIS-978] Fix deleted messages are visible in threads #1238

Merged
merged 1 commit into from
Jun 30, 2021

Conversation

b-onc
Copy link
Contributor

@b-onc b-onc commented Jun 30, 2021

We didn't include proper predicates for reply fetching

@b-onc b-onc added 🐞 Bug An issue or PR related to a bug 🌐 SDK: StreamChat (LLC) Tasks related to the StreamChat LLC SDK labels Jun 30, 2021
@b-onc b-onc requested a review from VojtaStavik June 30, 2021 14:21
Copy link
Contributor

@VojtaStavik VojtaStavik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch 👍

Comment on lines +136 to +143
/// Returns predicate with thread messages that should be shown in the thread.
static func threadRepliesPredicate(for messageId: MessageId) -> NSCompoundPredicate {
Copy link
Contributor

@VojtaStavik VojtaStavik Jun 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this logic is very similar to channel messages, should we find a way how to share this logic to prevent similar inconsistencies in the future?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually copy/pasted some predicates (like deleted messages) so it makes sense to refactor these common predicates, i'll check/do this 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug An issue or PR related to a bug 🌐 SDK: StreamChat (LLC) Tasks related to the StreamChat LLC SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants