mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Fix auto delete post when dismissed by a plugin (#25791)
This commit is contained in:
committed by
GitHub
parent
0e60f3d542
commit
ec4fdba04e
@@ -276,7 +276,8 @@ export function createPost(post: Post, files: any[] = []) {
|
||||
error.server_error_id === 'api.post.create_post.town_square_read_only' ||
|
||||
error.server_error_id === 'plugin.message_will_be_posted.dismiss_post'
|
||||
) {
|
||||
actions.push(removePost(data) as any);
|
||||
// RemovePost is a Thunk, and not handled by batchActions
|
||||
dispatch(removePost(data));
|
||||
} else {
|
||||
actions.push(receivedPost(data, crtEnabled));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user