Skip to content

Commit

Permalink
refactor(chat-view): improve chat skeleton positioning when loading m…
Browse files Browse the repository at this point in the history
…essages (#2202)
  • Loading branch information
domw30 authored Aug 24, 2024
1 parent 95e46c2 commit af3bc8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/chat-view-container/chat-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,10 @@ export class ChatView extends React.Component<Properties, State> {
<Waypoint onEnter={this.props.onFetchMore} />
</div>
)}
{this.props.messages.length > 0 && this.renderMessages()}
{!this.props.hasLoadedMessages && this.props.messagesFetchStatus !== MessagesFetchState.FAILED && (
<ChatSkeleton conversationId={this.props.id} />
)}
{this.props.messages.length > 0 && this.renderMessages()}
</div>

{this.props.messagesFetchStatus === MessagesFetchState.FAILED && (
Expand Down

0 comments on commit af3bc8a

Please sign in to comment.