From dc732fcc1c7bfe88e8a92e434b14bf89dec1614a Mon Sep 17 00:00:00 2001 From: zerosoul Date: Tue, 17 May 2022 11:49:08 +0800 Subject: [PATCH] fix: reply message disappear delay --- src/common/component/LeaveChannel/LeaveConfirmModal.js | 2 +- src/common/component/Send/index.js | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/common/component/LeaveChannel/LeaveConfirmModal.js b/src/common/component/LeaveChannel/LeaveConfirmModal.js index cf9f7e0d..b4c493be 100644 --- a/src/common/component/LeaveChannel/LeaveConfirmModal.js +++ b/src/common/component/LeaveChannel/LeaveConfirmModal.js @@ -25,7 +25,7 @@ export default function LeaveConfirmModal({ id, closeModal, handleNextStep }) { title="Leave Channel" description={ isOwner - ? "You have to transfer the ownership first" + ? "You need to transfer your channel ownership to someone else before leaving the channel." : "Are you sure want to leave this channel?" } buttons={ diff --git a/src/common/component/Send/index.js b/src/common/component/Send/index.js index 0f2c1408..c0fc885a 100644 --- a/src/common/component/Send/index.js +++ b/src/common/component/Send/index.js @@ -5,7 +5,6 @@ import { useDispatch, useSelector } from "react-redux"; import useSendMessage from "../../hook/useSendMessage"; import useAddLocalFileMessage from "../../hook/useAddLocalFileMessage"; -import { removeReplyingMessage } from "../../../app/slices/message"; import { updateInputMode, updateUploadFiles } from "../../../app/slices/ui"; import { ContentTypes } from "../../../app/config"; @@ -90,9 +89,6 @@ function Send({ from_uid, properties, }); - if (replying_mid) { - dispatch(removeReplyingMessage(id)); - } } } // send files