ios: preserve chat scroll position on resume
TestFlight / testflight (push) Successful in 1m46s

This commit is contained in:
2026-07-12 13:57:45 -07:00
parent 93ca8a76c3
commit 622659f6ca
3 changed files with 8 additions and 3 deletions
@@ -1752,13 +1752,16 @@ final class SybilViewModel {
switch target {
case let .chat(chatID):
SybilLog.debug(SybilLog.app, "Refreshing chat \(chatID)")
let isSelectingDifferentChat = selectedChat?.id != chatID
let chat = try await client.getChat(chatID: chatID)
guard selectedItem == target, draftKind == nil else {
return
}
selectedChat = chat
selectedSearch = nil
requestChatBottomPin()
if isSelectingDifferentChat {
requestChatBottomPin()
}
if let provider = chat.lastUsedProvider,
let model = chat.lastUsedModel,