Compare commits

..

No commits in common. "71468f02f25cbd51c418ecba9286ea8d7a121982" and "76ebe0f771674e95ed29171e8242a0d4758c6a21" have entirely different histories.

2 changed files with 2 additions and 16 deletions

View file

@ -38,16 +38,9 @@ struct ChatBufferView: View {
}
.padding()
}
.onChange(of: isInputFocused) { _, focused in
if focused, let last = messages.last {
proxy.scrollTo(last.persistentModelID, anchor: .bottom)
}
}
.onChange(of: messages.count) {
guard let last = messages.last, last.sessionId == manager.sessionId else { return }
Task { @MainActor in
proxy.scrollTo(last.persistentModelID, anchor: .bottom)
}
let isActive = bufferName == manager.activeBuffer
let playBackground = UserDefaults.standard.bool(forKey: "sounds_background_buffers", default: true)

View file

@ -34,16 +34,9 @@ struct DMConversationView: View {
}
.padding()
}
.onChange(of: isInputFocused) { _, focused in
if focused, let last = messages.last {
proxy.scrollTo(last.persistentModelID, anchor: .bottom)
}
}
.onChange(of: messages.count) {
guard let last = messages.last, last.sessionId == manager.sessionId else { return }
Task { @MainActor in
proxy.scrollTo(last.persistentModelID, anchor: .bottom)
}
// Sound
if UserDefaults.standard.bool(forKey: "sounds_enabled", default: true),