Reset channel top visibility correctly to fix intro message after tutorial (#3159)

Этот коммит содержится в:
Joram Wilander
2016-05-31 10:52:55 -04:00
коммит произвёл Christopher Speller
родитель c226cabc04
Коммит e23084ba1d

Просмотреть файл

@@ -260,7 +260,11 @@ class PostStoreClass extends EventEmitter {
clearChannelVisibility(id, atBottom) {
this.makePostsInfo(id);
this.postsInfo[id].endVisible = Constants.POST_CHUNK_SIZE;
this.postsInfo[id].atTop = false;
if (this.postsInfo[id].postList) {
this.postsInfo[id].atTop = this.postsInfo[id].atTop && Constants.POST_CHUNK_SIZE >= this.postsInfo[id].postList.order.length;
} else {
this.postsInfo[id].atTop = false;
}
this.postsInfo[id].atBottom = atBottom;
}