Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/package-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
9 changes: 8 additions & 1 deletion apps/testing/src/pages/PlaygroundPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,12 @@ import { defaultProps } from '../libs/const.ts';

export function PlaygroundPage() {
const props = useConfigParams(defaultProps);
return <GroupChannelApp {...props} breakpoint={/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)} config={{ logLevel: 'all' }} />;
return <GroupChannelApp {...props} breakpoint={/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)} config={{ logLevel: 'all' }}
uikitOptions={{
groupChannel: {
replyType: 'thread',
},

}}
/>;
}
4 changes: 3 additions & 1 deletion src/modules/Thread/context/hooks/useHandleChannelEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/Thread/context/useThread.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down