fix: reply message disappear delay
This commit is contained in:
@@ -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={
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user