diff --git a/src/ts/component/block/chat.tsx b/src/ts/component/block/chat.tsx index d92d2080c0..39c38199c3 100644 --- a/src/ts/component/block/chat.tsx +++ b/src/ts/component/block/chat.tsx @@ -390,6 +390,7 @@ const BlockChat = observer(class BlockChat extends React.Component { objects.forEach(it => S.Detail.update(rootId, { id: it.id, details: it }, false)); + this.forceUpdate(); this.refForm?.forceUpdate(); if (callBack) { diff --git a/src/ts/component/index.tsx b/src/ts/component/index.ts similarity index 100% rename from src/ts/component/index.tsx rename to src/ts/component/index.ts diff --git a/src/ts/interface/common.ts b/src/ts/interface/common.ts index 515821a3b5..d032b1e3fd 100644 --- a/src/ts/interface/common.ts +++ b/src/ts/interface/common.ts @@ -340,6 +340,10 @@ export interface SearchSubscribeParam { noDeps: boolean; }; +export interface SearchIdsParam extends SearchSubscribeParam { + ids: string[]; +}; + export enum SortId { All = 'all', Orphan = 'orphan', diff --git a/src/ts/lib/util/data.ts b/src/ts/lib/util/data.ts index 7c5f5326bf..fdd085e950 100644 --- a/src/ts/lib/util/data.ts +++ b/src/ts/lib/util/data.ts @@ -900,7 +900,7 @@ class UtilData { }); }; - subscribeIds (param: any, callBack?: (message: any) => void) { + subscribeIds (param: Partial, callBack?: (message: any) => void) { const { space } = S.Common; param = Object.assign({