Skip to content

Commit

Permalink
[Chat] fix: lastMessageId 있는 경우에만 업데이트
Browse files Browse the repository at this point in the history
  • Loading branch information
dia-triple committed Aug 30, 2023
1 parent 4cb9da0 commit b907626
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/chat/src/chat/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,9 @@ export const Chat = ({
}

useEffect(() => {
void handleChangeLastMessageId()
if (lastMessageId) {
void handleChangeLastMessageId()
}
}, [lastMessageId])

useEffect(() => {
Expand Down

0 comments on commit b907626

Please sign in to comment.