Message caching with last message

This commit is contained in:
2025-10-15 12:09:27 +02:00
parent f98a0f99c9
commit 4f9ce94209
3 changed files with 3 additions and 11 deletions
+1 -2
View File
@@ -79,7 +79,7 @@ export default function AppSidebar({
user?.node_address,
wsRef,
() => {},
(ms) => ms.forEach(addMessage),
addMessage,
(m) => {
if (m.from !== chatWith && m.from !== user.id)
toast(
@@ -95,7 +95,6 @@ export default function AppSidebar({
if (onNewMessage) onNewMessage(m);
},
undefined,
messages ? messages[messages.length - 1].id : undefined
);
setUserList((prev) => {