chore: rename again

This commit is contained in:
Tristan Yang
2022-07-04 16:55:13 +08:00
parent 227ae51af3
commit 8330e45674
27 changed files with 141 additions and 94 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ import { useUpdateMuteSettingMutation } from "../../../app/services/user";
import { useReadMessageMutation } from "../../../app/services/message";
import { removeUserSession } from "../../../app/slices/message.user";
import ContextMenu from "../../../common/component/ContextMenu";
import useContactOperation from "../../../common/hook/useContactOperation";
import useUserOperation from "../../../common/hook/useUserOperation";
export default function SessionContextMenu({
context = "user",
@@ -17,7 +17,7 @@ export default function SessionContextMenu({
setInviteChannelId,
children
}) {
const { canCopyEmail, copyEmail } = useContactOperation({ uid: context == "user" ? id : null });
const { canCopyEmail, copyEmail } = useUserOperation({ uid: context == "user" ? id : null });
const [muteChannel] = useUpdateMuteSettingMutation();
const [updateReadIndex] = useReadMessageMutation();
const pathMatched = useMatch(`/chat/dm/${id}`);