cheogram-aapl
created pr with
cheogram-aapl/jump-to-unread.1
commented
lgtm
cmds
checkout latest patchset:
ssh pr.pico.sh pull cheogram-aapl:jump-to-unread | git am -3checkout specific patchset revision:
ssh pr.pico.sh pull cheogram-aapl:jump-to-unread [rev] | git am -3add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh cheogram-aapl:jump-to-unreadadd comment to patch request:
ssh pr.pico.sh comment cheogram-aapl:jump-to-unread "lgtm!"
Patchset
cheogram-aapl/jump-to-unread.1
Update to the latest ExyteChat (fork)
Stephen Paul Weber
Open at the first unread message and mark read only what is visible
2026-11-16T20:04:24ZStephen Paul Weber
Use canReplace
2026-11-16T20:05:22ZStephen Paul Weber
→ Add temporary XYZZY probes around newer-page fetches
2026-11-16T20:05:22ZStephen Paul Weber
2026-11-16T20:05:22Z
Add temporary XYZZY probes around newer-page fetches
Stephen Paul Weber
2026-11-16T20:05:22ZSemantic diff summary
0 added,
0 modified,
0 signature changed,
0 removed
across 0 analyzed files
(1 file skipped: unsupported file type)
+11
-0
App/App.swift
#
| ... | ... | @@ -510,11 +510,22 @@ class ChatViewModel { | |
| 510 | 510 | } | |
| 511 | 511 | ||
| 512 | 512 | func loadMessagesAfter(message: Message?) async { | |
| 513 | + | // XYZZY temporary: a newer-page fetch that adds nothing leaves the list's | |
| 514 | + | // spinner to be cleared by an update that never comes. | |
| 515 | + | let log = Logger(subsystem: bundleID, category: "client") | |
| 513 | 516 | guard let chat, let message, let after = messageData[message.id] else { | |
| 517 | + | log.info("XYZZY newer skipped id=\(message?.id ?? "nil", privacy: .public)") | |
| 514 | 518 | return | |
| 515 | 519 | } | |
| 520 | + | let before = messages.count | |
| 516 | 521 | let fetched = await chat.getMessagesAfter(after: after) | |
| 517 | 522 | await insertPage(fetched, older: false, of: chat) | |
| 523 | + | let isLast = chat.lastMessage?.canReplace(other: after) ?? false | |
| 524 | + | let added = self.messages.count - before | |
| 525 | + | let caughtUp = self.isCaughtUpToNewest | |
| 526 | + | log.info( | |
| 527 | + | "XYZZY newer after=\(after.serverId ?? after.localId ?? "none", privacy: .public) isLast=\(isLast, privacy: .public) fetched=\(fetched.count, privacy: .public) added=\(added, privacy: .public) caughtUp=\(caughtUp, privacy: .public)" | |
| 528 | + | ) | |
| 518 | 529 | } | |
| 519 | 530 | ||
| 520 | 531 | private func insertPage( |