Skip to content

fix: scroll to bottom for channel new message#547

Merged
gbirman merged 3 commits intomainfrom
gab/m-5385-channel-scroll-to-bottom-not-working-after-new-message-send
Dec 11, 2025
Merged

fix: scroll to bottom for channel new message#547
gbirman merged 3 commits intomainfrom
gab/m-5385-channel-scroll-to-bottom-not-working-after-new-message-send

Conversation

@gbirman
Copy link
Copy Markdown
Contributor

@gbirman gbirman commented Dec 11, 2025

Summary

  • if I typed a new message i wouldnt get scrolled to the bottom
  • if a user typed a new reply thread reply it wouldn't update state either, now it'll scroll

Screenshots, GIFs, and Videos

@gbirman gbirman requested a review from a team as a code owner December 11, 2025 03:50
@linear
Copy link
Copy Markdown

linear bot commented Dec 11, 2025

const lastTopLevelId = base[base.length - 1]?.id;
return viewThreads[lastTopLevelId];
return viewThreads[lastTopLevelId]?.length ?? 0;
});
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this alone is an array reference so its not reactive, need to access some property on it for the changes to reflect

const [newMessageIndex, setNewMessageIndex] = createSignal<number>();

// Record new unviewed messages
// TODO: show new reply state for threads with new messages
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gbirman gbirman merged commit b86303e into main Dec 11, 2025
18 checks passed
@gbirman gbirman deleted the gab/m-5385-channel-scroll-to-bottom-not-working-after-new-message-send branch December 11, 2025 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants