Skip to content

Conversation

@PVince81
Copy link
Member

@PVince81 PVince81 commented Jul 7, 2021

Added condition to detect the last message when deciding whether to
render the read marker.

Fixes issues when the last message is a deleted one or a command and
where the marker was displayed.

Fixes #5959

@PVince81 PVince81 added this to the 💖 Next Major (23) milestone Jul 7, 2021
@PVince81 PVince81 self-assigned this Jul 7, 2021
@PVince81
Copy link
Member Author

PVince81 commented Jul 7, 2021

/backport to stable22

@PVince81
Copy link
Member Author

PVince81 commented Jul 7, 2021

added test and squashed

isLastReadMessage() {
if (!this.nextMessageId) {
// never display indicator on the very last message
return
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return
return false

Added condition to detect the last message when deciding whether to
render the read marker.

Fixes issues when the last message is a deleted one or a command and
where the marker was displayed.

Signed-off-by: Vincent Petry <[email protected]>
Co-authored-by: Joas Schilling <[email protected]>
@PVince81 PVince81 force-pushed the bugfix/5959/never-unread-marker-lastmessage branch from e9d6d27 to 13e3999 Compare July 7, 2021 15:04
@PVince81
Copy link
Member Author

PVince81 commented Jul 7, 2021

adjusted, thanks for spotting

@PVince81 PVince81 merged commit f1e6bd4 into master Jul 7, 2021
@PVince81 PVince81 deleted the bugfix/5959/never-unread-marker-lastmessage branch July 7, 2021 15:14
@nickvergessen
Copy link
Member

/backport to stable22.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unread marker appearing at bottom when system messages are involved

3 participants