fix(app): read timeline follow state on composer submit (#61822)

This commit is contained in:
Aiden Cline
2026-11-04 17:17:55 -06:00
committed by GitHub
Unverified
parent a3bcf75042
commit 134d1b411c
+4 -3
View File
@@ -332,10 +332,11 @@ export function createActiveSessionRegion(input: {
state,
parentID: input.session.data.parentID,
centered: input.screen.centered,
// Submitting keeps following only when already following. A reader scrolled up stays where they are; the
// jump-to-latest button takes them down.
// Submitting reads past the automatic unread marker. Keep a reader's own scroll or revealed tool in place.
onResponseSubmit: () => {
if (input.timeline.view.pinned()) input.timeline.actions.resume()
const anchor = input.timeline.follow.anchor()
if (input.timeline.follow.following() || (anchor && !anchor.partID)) input.timeline.actions.resume()
},
openParent,
focusPrompt: () => focusPrompt(),