MM-50746 : Edits to messages persist after cancelling (#22676)
Этот коммит содержится в:
@@ -220,7 +220,13 @@ const EditPost = ({editingPost, actions, canEditPost, config, channelId, draft,
|
||||
actions.unsetEditingPost();
|
||||
};
|
||||
|
||||
const handleAutomatedRefocusAndExit = () => handleRefocusAndExit(editingPost.refocusId || null);
|
||||
const handleAutomatedRefocusAndExit = () => {
|
||||
draftRef.current = {
|
||||
...draftRef.current,
|
||||
message: '',
|
||||
};
|
||||
handleRefocusAndExit(editingPost.refocusId || null);
|
||||
};
|
||||
|
||||
const handleEdit = async () => {
|
||||
if (!editingPost.post || isSaveDisabled()) {
|
||||
|
||||
Ссылка в новой задаче
Block a user