mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-08-09 10:13:02 +02:00
Fix message clearing and scroll
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -13,7 +13,7 @@
|
|||||||
<link rel="shortcut icon" href="/favicon.ico" />
|
<link rel="shortcut icon" href="/favicon.ico" />
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
|
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
|
||||||
<link rel="manifest" href="/site.webmanifest" />
|
<link rel="manifest" href="/site.webmanifest" />
|
||||||
<script type="module" crossorigin src="/assets/index-DVwayj9K.js"></script>
|
<script type="module" crossorigin src="/assets/index-CBdmGStv.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-DaLCXB8p.css">
|
<link rel="stylesheet" crossorigin href="/assets/index-DaLCXB8p.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -42,6 +42,8 @@ export function useConversationMessages(
|
|||||||
|
|
||||||
if (showLoading) {
|
if (showLoading) {
|
||||||
setMessagesLoading(true);
|
setMessagesLoading(true);
|
||||||
|
// Clear messages first so MessageList resets scroll state for new conversation
|
||||||
|
setMessages([]);
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
const data = await api.getMessages({
|
const data = await api.getMessages({
|
||||||
|
|||||||
Reference in New Issue
Block a user