Compare commits
No commits in common. "71468f02f25cbd51c418ecba9286ea8d7a121982" and "76ebe0f771674e95ed29171e8242a0d4758c6a21" have entirely different histories.
71468f02f2
...
76ebe0f771
2 changed files with 2 additions and 16 deletions
|
|
@ -38,16 +38,9 @@ struct ChatBufferView: View {
|
||||||
}
|
}
|
||||||
.padding()
|
.padding()
|
||||||
}
|
}
|
||||||
.onChange(of: isInputFocused) { _, focused in
|
|
||||||
if focused, let last = messages.last {
|
|
||||||
proxy.scrollTo(last.persistentModelID, anchor: .bottom)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.onChange(of: messages.count) {
|
.onChange(of: messages.count) {
|
||||||
guard let last = messages.last, last.sessionId == manager.sessionId else { return }
|
guard let last = messages.last, last.sessionId == manager.sessionId else { return }
|
||||||
Task { @MainActor in
|
proxy.scrollTo(last.persistentModelID, anchor: .bottom)
|
||||||
proxy.scrollTo(last.persistentModelID, anchor: .bottom)
|
|
||||||
}
|
|
||||||
|
|
||||||
let isActive = bufferName == manager.activeBuffer
|
let isActive = bufferName == manager.activeBuffer
|
||||||
let playBackground = UserDefaults.standard.bool(forKey: "sounds_background_buffers", default: true)
|
let playBackground = UserDefaults.standard.bool(forKey: "sounds_background_buffers", default: true)
|
||||||
|
|
|
||||||
|
|
@ -34,16 +34,9 @@ struct DMConversationView: View {
|
||||||
}
|
}
|
||||||
.padding()
|
.padding()
|
||||||
}
|
}
|
||||||
.onChange(of: isInputFocused) { _, focused in
|
|
||||||
if focused, let last = messages.last {
|
|
||||||
proxy.scrollTo(last.persistentModelID, anchor: .bottom)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.onChange(of: messages.count) {
|
.onChange(of: messages.count) {
|
||||||
guard let last = messages.last, last.sessionId == manager.sessionId else { return }
|
guard let last = messages.last, last.sessionId == manager.sessionId else { return }
|
||||||
Task { @MainActor in
|
proxy.scrollTo(last.persistentModelID, anchor: .bottom)
|
||||||
proxy.scrollTo(last.persistentModelID, anchor: .bottom)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Sound
|
// Sound
|
||||||
if UserDefaults.standard.bool(forKey: "sounds_enabled", default: true),
|
if UserDefaults.standard.bool(forKey: "sounds_enabled", default: true),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue