From 36f6b7e130cbeabbf8c4c7c77ba64fa81366a0d8 Mon Sep 17 00:00:00 2001 From: Tristan Yang Date: Sat, 6 May 2023 16:41:07 +0800 Subject: [PATCH] chore: ignoreLocal ts type --- src/common/hook/useSendMessage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/hook/useSendMessage.ts b/src/common/hook/useSendMessage.ts index 4aaf69d5..0ba6e4cd 100644 --- a/src/common/hook/useSendMessage.ts +++ b/src/common/hook/useSendMessage.ts @@ -19,7 +19,7 @@ interface SendMessagesDTO { channels: number[]; } -type SendMessageDTO = { type: ContentTypeKey } & Partial +type SendMessageDTO = { type: ContentTypeKey } & Partial & { ignoreLocal?: boolean } const useSendMessage = (props?: Props) => { const { context = "user", from = 0, to = 0 } = props || {}; const dispatch = useAppDispatch();