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-1153] Fix an issue with thread replies not being shown if there was a reply that was also sent to a channel #1413

Merged
merged 1 commit into from Aug 31, 2021

Conversation

dmigach
Copy link
Contributor

@dmigach dmigach commented Aug 31, 2021

An issue was reported here:
#1389

It's easily reproducible with the local storage disabled, but when it disabled the behaviour is also not entirely correct

What's happening:

If there was a thread reply that was also sent to the channel, you get it when you fetch the channel. Then when you open the original thread, this problematic reply is in core data already, so replies.last won't return nil, even though the only reply in this collection has nothing to do with the last message. So we would take this replies.last reply and use it to start our pagination with, ignoring all the messages that are younger

@dmigach dmigach force-pushed the CIS-1153-thread-replies-fix branch from a270820 to e54bef3 Compare August 31, 2021 15:52
@tbarbugli tbarbugli merged commit 18693fd into main Aug 31, 2021
@tbarbugli tbarbugli deleted the CIS-1153-thread-replies-fix branch August 31, 2021 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants