fix: reply message disappear delay
This commit is contained in:
@@ -25,7 +25,7 @@ export default function LeaveConfirmModal({ id, closeModal, handleNextStep }) {
|
|||||||
title="Leave Channel"
|
title="Leave Channel"
|
||||||
description={
|
description={
|
||||||
isOwner
|
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?"
|
: "Are you sure want to leave this channel?"
|
||||||
}
|
}
|
||||||
buttons={
|
buttons={
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import { useDispatch, useSelector } from "react-redux";
|
|||||||
|
|
||||||
import useSendMessage from "../../hook/useSendMessage";
|
import useSendMessage from "../../hook/useSendMessage";
|
||||||
import useAddLocalFileMessage from "../../hook/useAddLocalFileMessage";
|
import useAddLocalFileMessage from "../../hook/useAddLocalFileMessage";
|
||||||
import { removeReplyingMessage } from "../../../app/slices/message";
|
|
||||||
import { updateInputMode, updateUploadFiles } from "../../../app/slices/ui";
|
import { updateInputMode, updateUploadFiles } from "../../../app/slices/ui";
|
||||||
import { ContentTypes } from "../../../app/config";
|
import { ContentTypes } from "../../../app/config";
|
||||||
|
|
||||||
@@ -90,9 +89,6 @@ function Send({
|
|||||||
from_uid,
|
from_uid,
|
||||||
properties,
|
properties,
|
||||||
});
|
});
|
||||||
if (replying_mid) {
|
|
||||||
dispatch(removeReplyingMessage(id));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// send files
|
// send files
|
||||||
|
|||||||
Reference in New Issue
Block a user