From 182190314f4718d39a8e4a150fbc1bd9aef04848 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Espino=20Garc=C3=ADa?= Date: Tue, 27 Aug 2024 15:58:05 +0200 Subject: [PATCH] Fix replying on deleted posts (#28061) --- .../channels/src/components/advanced_text_editor/use_submit.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/channels/src/components/advanced_text_editor/use_submit.tsx b/webapp/channels/src/components/advanced_text_editor/use_submit.tsx index b56f8539b0f..3f4c0e1c8fe 100644 --- a/webapp/channels/src/components/advanced_text_editor/use_submit.tsx +++ b/webapp/channels/src/components/advanced_text_editor/use_submit.tsx @@ -89,7 +89,7 @@ const useSubmit = ( return false; } const post = getPost(state, postId); - if (!post || post.delete_at) { + if (!post || post.delete_at || post.state === 'DELETED') { return true; }