fix: remove if plugin in msg check

This commit is contained in:
abdou6666 2025-02-04 16:17:31 +01:00
parent ccd8d95f8f
commit 1337c8cb6b

View File

@ -36,9 +36,6 @@ export function isValidMessage(msg: any) {
}
return result.success;
} else if (typeof msg === 'object' && msg !== null) {
if ('plugin' in msg) {
return true;
}
const result = blockMessageObjectSchema.safeParse(msg);
if (!result.success) {
console.error('Block Model: Object validation failed!', result.error);