Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest

env:
BOT_GH_TOKEN: ${{ secrets.BOT_GH_TOKEN }}
BOT_GH_TOKEN: ${{ secrets.SDK_GH_BOT1_TOKEN }}

steps:
- name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/package-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.SDK_GH_BOT1_TOKEN }}
fetch-depth: 0
- uses: actions/setup-node@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-comment-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
if : ${{ github.event.issue.pull_request}}
runs-on: ubuntu-latest
env:
BOT_GH_TOKEN: ${{ secrets.BOT_GH_TOKEN }}
BOT_GH_TOKEN: ${{ secrets.SDK_GH_BOT1_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: sendbird/release-automation-action@latest
Expand Down
11 changes: 9 additions & 2 deletions src/ui/TypingIndicatorBubble/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,15 @@ const TypingIndicatorBubble = (props: TypingIndicatorBubbleProps) => {

useLayoutEffect(() => {
// Keep the scrollBottom value after fetching new message list
handleScroll?.(true);
}, []);
// Also adjust scroll when typing indicator appears (0 -> 1+)
if (typingMembers.length === 0) return;
const rafId = requestAnimationFrame(() => {
handleScroll?.(true);
});
return () => {
cancelAnimationFrame(rafId);
};
}, [handleScroll, typingMembers.length]);

if (typingMembers.length === 0) return null;

Expand Down