+ {/if}
- {#each chatList as chat, idx (chat.id)}
- {#if idx === 0 || (idx > 0 && chat.time_range !== chatList[idx - 1].time_range)}
-
{
- selectedIdx = idx;
- }}
- on:click={() => {
- show = false;
- onClose();
- }}
- >
-
+ {/if}
-
- {dayjs(chat?.updated_at * 1000).calendar()}
-
- {
+ selectedIdx = idx;
+ }}
+ on:click={() => {
+ show = false;
+ onClose();
+ }}
+ >
+
- {#if !allChatsLoaded}
- {
- if (!chatListLoading) {
- loadMoreChats();
- }
- }}
- >
-
-
+
+ {dayjs(chat?.updated_at * 1000).calendar()}
+
+