We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ee8231 commit 6738d44Copy full SHA for 6738d44
src/components/Channel/Channel.tsx
@@ -833,9 +833,11 @@ const ChannelInner = <
833
loadMoreFinished(hasMoreMessages, channel.state.messages);
834
return;
835
}
836
+
837
const firstMessageWithCreationDate = messages.find((msg) => msg.created_at);
838
if (!(messages.length && firstMessageWithCreationDate)) {
839
addNotification(t('Failed to jump to the first unread message'), 'error');
840
+ loadMoreFinished(hasMoreMessages, channel.state.messages);
841
842
843
const firstMessageTimestamp = new Date(
@@ -850,6 +852,7 @@ const ChannelInner = <
850
852
lastReadMessageId = result.target?.id;
851
853
hasMoreMessages = result.index >= Math.floor(queryMessageLimit / 2);
854
855
856
857
858
0 commit comments