Skip to content

Commit

Permalink
Fix notification dispatch for lineId 0
Browse files Browse the repository at this point in the history
  • Loading branch information
mhoran committed Nov 15, 2024
1 parent 2bbb3d1 commit 9ae8801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usecase/Root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default class WeechatNative extends React.Component<null, State> {
const request = response.notification.request;
const { bufferId, lineId } = request.content.data;

if (!bufferId || !lineId) return;
if (bufferId === undefined || lineId === undefined) return;

store.dispatch(
pendingBufferNotificationAction({
Expand Down

0 comments on commit 9ae8801

Please sign in to comment.