diff --git a/src/components/middle/MessageList.tsx b/src/components/middle/MessageList.tsx index 50260192..4f6f004f 100644 --- a/src/components/middle/MessageList.tsx +++ b/src/components/middle/MessageList.tsx @@ -275,8 +275,8 @@ const MessageList: FC = ({ } // Loading history while sending a message can return the same message and cause ambiguity - const isFirstMessageLocal = messageIds && messageIds[0] >= LOCAL_MESSAGE_ID_BASE; - if (isFirstMessageLocal) { + const isLastMessageLocal = messageIds && messageIds[messageIds.length - 1] >= LOCAL_MESSAGE_ID_BASE; + if (isLastMessageLocal) { return; }