Merge pull request #3292 from urbit/la/chat-read

chat: don't show green line when unread is on page 1
This commit is contained in:
matildepark 2020-08-11 16:22:20 -04:00 committed by GitHub
commit 97bbac159c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,7 +174,9 @@ export class ChatWindow extends Component {
<ChatMessage
unreadRef={this.unreadReference}
isLastUnread={
props.unreadCount > 0 && i === props.unreadCount - 1
props.unreadCount > 0 &&
i === props.unreadCount - 1 &&
state.numPages !== 1
}
msg={msg}
previousMsg={messages[i - 1]}