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

Fix unread messages marker being hidden in collapsed membership item #3655

Merged
merged 2 commits into from
Jul 12, 2021

Conversation

SpiritCroc
Copy link
Contributor

@SpiritCroc SpiritCroc commented Jul 10, 2021

Scenario: the last read event in a chat is a membership change. After
that, at least two new membership changes were added, followed by normal
messages. Due to the membership changes being collapsed by default, in
this scenario the read marker would not show, since in the loop, we
would overwrite the appendReadMarker with the value for the last eventId
of the merged item, instead of showing it if any of the items matched.

Signed-off-by: Tobias Büttner dev@spiritcroc.de

Pull Request Checklist

Scenario: the last read event in a chat is a membership change. After
that, at least two new membership changes were added, followed by normal
messages. Due to the membership changes being collapsed by default, in
this scenario the read marker would not show, since in the loop, we
would overwrite the appendReadMarker with the value for the last eventId
of the merged item, instead of showing it if any of the items matched.
Copy link
Member

@bmarty bmarty left a comment

Choose a reason for hiding this comment

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

LGTM, thanks.

So just to confirm, the read marker will be displayed above the collapsed events with this fix? And in the correct place (as before) if the state events are expanded?

@SpiritCroc
Copy link
Contributor Author

Yes, that's how it behaves for me now. I've been testing using /myroomnick to generate membership events from desktop.

@bmarty
Copy link
Member

bmarty commented Jul 12, 2021

Thanks! I merge the PR then.

@bmarty bmarty merged commit fbcb2ea into element-hq:develop Jul 12, 2021
@SpiritCroc SpiritCroc deleted the unread_collapsed branch July 12, 2021 11:45
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