diff --git a/app/soapbox/features/chats/components/chat-message-list.tsx b/app/soapbox/features/chats/components/chat-message-list.tsx index 674947c45..b98db7c81 100644 --- a/app/soapbox/features/chats/components/chat-message-list.tsx +++ b/app/soapbox/features/chats/components/chat-message-list.tsx @@ -410,8 +410,8 @@ const ChatMessageList: React.FC = ({ chat, autosize }) => { followOutput='auto' components={{ Header: () => { - if (hasNextPage && isFetchingNextPage) { - return
; + if (hasNextPage || isFetchingNextPage) { + return ; } if (!hasNextPage && !isLoading) { @@ -420,15 +420,21 @@ const ChatMessageList: React.FC = ({ chat, autosize }) => { return null; }, - EmptyPlaceholder: () => ( -
- - - - - -
- ), + EmptyPlaceholder: () => { + if (isFetching) { + return ( +
+ + + + + +
+ ); + } + + return null; + }, }} />