diff --git a/.github/workflows/package-publish.yml b/.github/workflows/package-publish.yml index 9d1339c5c..096aae4b4 100644 --- a/.github/workflows/package-publish.yml +++ b/.github/workflows/package-publish.yml @@ -68,6 +68,26 @@ jobs: echo "SKIP_REST=true" >> $GITHUB_ENV fi cd - + - name: Verify npm package publication + run: | + cd ./dist + # Get package name and version from package.json + PACKAGE_NAME=$(node -p "require('./package.json').name") + PACKAGE_VERSION=$(node -p "require('./package.json').version") + + echo "Verifying package publication: $PACKAGE_NAME@$PACKAGE_VERSION" + + # Wait a moment for npm registry to update + sleep 10 + + # Check if package exists and get version info + if npm view $PACKAGE_NAME@$PACKAGE_VERSION version > /dev/null 2>&1; then + echo "✅ Package $PACKAGE_NAME@$PACKAGE_VERSION successfully published to npm" + else + echo "❌ Package $PACKAGE_NAME@$PACKAGE_VERSION not found on npm registry" + exit 1 + fi + cd - - name: Tag new target and push to origin if: env.SKIP_REST != 'true' run: | diff --git a/apps/testing/src/pages/PlaygroundPage.tsx b/apps/testing/src/pages/PlaygroundPage.tsx index 3ea64d6fa..75a174ae9 100644 --- a/apps/testing/src/pages/PlaygroundPage.tsx +++ b/apps/testing/src/pages/PlaygroundPage.tsx @@ -4,5 +4,11 @@ import { defaultProps } from '../libs/const.ts'; export function PlaygroundPage() { const props = useConfigParams(defaultProps); - return ; + return ; } diff --git a/src/modules/Thread/context/hooks/useHandleChannelEvents.ts b/src/modules/Thread/context/hooks/useHandleChannelEvents.ts index a26bde2d8..001e224fe 100644 --- a/src/modules/Thread/context/hooks/useHandleChannelEvents.ts +++ b/src/modules/Thread/context/hooks/useHandleChannelEvents.ts @@ -60,7 +60,9 @@ export default function useHandleChannelEvents({ }, onReactionUpdated(channel, reactionEvent) { logger.info('Thread | useHandleChannelEvents: onReactionUpdated', { channel, reactionEvent }); - onReactionUpdated(reactionEvent); + if (compareIds(channel?.url, currentChannel.url)) { + onReactionUpdated(reactionEvent); + } }, // user status change onUserMuted(channel, user) { diff --git a/src/modules/Thread/context/useThread.ts b/src/modules/Thread/context/useThread.ts index 2ec79319c..833db44ee 100644 --- a/src/modules/Thread/context/useThread.ts +++ b/src/modules/Thread/context/useThread.ts @@ -410,7 +410,7 @@ const useThread = () => { return m; }), }; - }), [store]), + }, true), [store]), onUserMuted: useCallback((channel: GroupChannel, user: User) => store.setState(state => { if (state.currentChannel?.url !== channel?.url || state.currentUserId !== user?.userId) {