clear unread message count more aggressively (and revert previous thinko)

This commit is contained in:
Matthew Hodgson 2015-11-13 01:42:09 +00:00
parent 04305460db
commit 36b7deac35

View File

@ -335,7 +335,7 @@ module.exports = {
if (this.refs.messagePanel) {
var messageWrapperScroll = this._getScrollNode();
var wasAtBottom = this.atBottom;
this.atBottom = messageWrapperScroll.scrollHeight - messageWrapperScroll.scrollTop <= messageWrapperScroll.clientHeight - 1;
this.atBottom = messageWrapperScroll.scrollHeight - messageWrapperScroll.scrollTop <= messageWrapperScroll.clientHeight + 1;
if (this.atBottom && !wasAtBottom) {
this.forceUpdate(); // remove unread msg count
}