From 9ae8801ba10b574abcea4b760def332d517cb74d Mon Sep 17 00:00:00 2001 From: Matthew Horan Date: Fri, 15 Nov 2024 16:41:45 -0500 Subject: [PATCH] Fix notification dispatch for lineId 0 --- src/usecase/Root.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usecase/Root.tsx b/src/usecase/Root.tsx index 5d9e943..0ac650c 100644 --- a/src/usecase/Root.tsx +++ b/src/usecase/Root.tsx @@ -65,7 +65,7 @@ export default class WeechatNative extends React.Component { const request = response.notification.request; const { bufferId, lineId } = request.content.data; - if (!bufferId || !lineId) return; + if (bufferId === undefined || lineId === undefined) return; store.dispatch( pendingBufferNotificationAction({