forked from Ivasoft/mattermost-mobile
Properly handle deleted system posts (#6297)
This commit is contained in:
committed by
GitHub
parent
dfe2b7cfbd
commit
5dba7f2667
@@ -67,6 +67,11 @@ function combineUserActivityPosts(orderedPosts: Array<PostModel | string>) {
|
||||
|
||||
continue;
|
||||
}
|
||||
} else if (post.deleteAt) {
|
||||
out.push(post);
|
||||
|
||||
lastPostIsUserActivity = false;
|
||||
combinedCount = 0;
|
||||
} else {
|
||||
const postIsUserActivity = Post.USER_ACTIVITY_POST_TYPES.includes(post.type);
|
||||
if (postIsUserActivity && lastPostIsUserActivity && combinedCount < MAX_COMBINED_SYSTEM_POSTS) {
|
||||
|
||||
Reference in New Issue
Block a user