mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: update memo store
This commit is contained in:
@ -4,7 +4,7 @@ import { useEffect, useState } from "react";
|
||||
import toast from "react-hot-toast";
|
||||
import { activityServiceClient } from "@/grpcweb";
|
||||
import useNavigateTo from "@/hooks/useNavigateTo";
|
||||
import { useInboxStore, useMemoStore } from "@/store/v1";
|
||||
import { MemoNamePrefix, useInboxStore, useMemoStore } from "@/store/v1";
|
||||
import { Inbox, Inbox_Status } from "@/types/proto/api/v2/inbox_service";
|
||||
import { Memo } from "@/types/proto/api/v2/memo_service";
|
||||
import { useTranslate } from "@/utils/i18n";
|
||||
@ -34,7 +34,7 @@ const MemoCommentMessage = ({ inbox }: Props) => {
|
||||
return;
|
||||
}
|
||||
if (activity.payload?.memoComment?.relatedMemoId) {
|
||||
const memo = await memoStore.getOrFetchMemoById(activity.payload?.memoComment?.relatedMemoId, {
|
||||
const memo = await memoStore.getOrFetchMemoByName(`${MemoNamePrefix}${activity.payload?.memoComment?.relatedMemoId}`, {
|
||||
skipStore: true,
|
||||
});
|
||||
setRelatedMemo(memo);
|
||||
|
Reference in New Issue
Block a user