Reset channel top visibility correctly to fix intro message after tutorial (#3159)
Этот коммит содержится в:
коммит произвёл
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;
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user