remember whether object view was open

This commit is contained in:
marlon-erler
2024-07-11 21:34:21 +02:00
parent 9a312780d1
commit afc0a10b52
4 changed files with 12 additions and 14 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ import * as React from "bloatless-react";
import { Chat, ChatMessage } from "../../Model/chatModel";
import { isShowingChatTools } from "../../Model/model";
import { isShowingObjects } from "../../Model/model";
import { translation } from "../../translations";
export function ThreadView(chat: Chat) {
@@ -138,7 +138,7 @@ export function ThreadView(chat: Chat) {
chat.messages.handleAddition(scrollToBottomIfAppropriate);
chat.outbox.handleAddition(scrollToBottomIfAppropriate);
isShowingChatTools.subscribe(() => scrollToBottom());
isShowingObjects.subscribe(() => scrollToBottom());
setTimeout(() => scrollToBottom(), 50);
return listWrapper;