Skip to content

New message indicator only show up for new messages#2915

Merged
compulim merged 10 commits intomicrosoft:masterfrom
compulim:feat-new-message
Feb 19, 2020
Merged

New message indicator only show up for new messages#2915
compulim merged 10 commits intomicrosoft:masterfrom
compulim:feat-new-message

Conversation

@compulim
Copy link
Copy Markdown
Contributor

@compulim compulim commented Feb 18, 2020

Fixes #2757.

Changelog Entry

  • Fixes #2757. New message indicator should only show up for new messages, by @compulim in PR #2915

Description

When the user scroll up, the new message indicator will not show up until a new message activity is received.

Specific Changes

  • Modified ScrollToEndButton.js
    • If it is at the bottom, remember the last message activity ID (a.k.a. read ID)
    • If it is not at the bottom, show the button only if the last read ID is not same as the last message ID
      • If the ID mismatch, it means the user never read the activity

  • Testing Added

Comment thread packages/component/src/Activity/ScrollToEndButton.js Outdated
Comment thread packages/component/src/Activity/ScrollToEndButton.js Outdated
Copy link
Copy Markdown
Contributor

@corinagum corinagum left a comment

Choose a reason for hiding this comment

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

Approved, pending rebase and a couple of comments.

@compulim compulim merged commit e75021f into microsoft:master Feb 19, 2020
@compulim compulim deleted the feat-new-message branch February 19, 2020 22:16
@compulim compulim mentioned this pull request Mar 5, 2020
40 tasks
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.

[IC3] New message indicator

2 participants