Merge pull request #1515 from mattermost/fix-unread
Fixing pending post deletion on other clients.
Этот коммит содержится в:
@@ -399,10 +399,12 @@ class PostStoreClass extends EventEmitter {
|
||||
|
||||
Reflect.deleteProperty(postList.posts, pendingPostId);
|
||||
const index = postList.order.indexOf(pendingPostId);
|
||||
if (index !== -1) {
|
||||
postList.order.splice(index, 1);
|
||||
if (index === -1) {
|
||||
return;
|
||||
}
|
||||
|
||||
postList.order.splice(index, 1);
|
||||
|
||||
this.postsInfo[channelId].pendingPosts = postList;
|
||||
this.emitChange();
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user