checker message

This commit is contained in:
Wang Kejun 2023-08-24 18:12:28 +08:00
parent 785e0bb305
commit 1592c3653e
1 changed files with 7 additions and 0 deletions

View File

@ -12,6 +12,13 @@ const checkers: Checker<EntityDict, 'message', RuntimeCxt> [] = [
entity: 'message', entity: 'message',
checker: (operation, context) => { checker: (operation, context) => {
const systemId = context.getSystemId(); const systemId = context.getSystemId();
if (!systemId) {
return;
}
const isRoot = context.isRoot();
if (isRoot) {
return;
}
const filter: EntityDict['message']['Selection']['filter'] = { const filter: EntityDict['message']['Selection']['filter'] = {
messageSystem$message: { messageSystem$message: {
systemId, systemId,