Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix entering thread view when there's no messages yet #224

Merged
merged 1 commit into from
Mar 24, 2024
Merged

Conversation

ulyssa
Copy link
Owner

@ulyssa ulyssa commented Mar 24, 2024

#152 defaulted to showing the non-thread messages when trying to enter a brand-new thread, which is confusing. The ScrollbackState::get_thread method should return an Option when there's nothing to view.

I've also refactored Message::show to make it easier to follow now that it's also got the thread count logic.

@ulyssa ulyssa added this to the v0.0.9 milestone Mar 24, 2024
@ulyssa ulyssa enabled auto-merge (squash) March 24, 2024 02:04
@ulyssa ulyssa added the ui Issues related to rendering, widgets, or general terminal-related issues label Mar 24, 2024
@ulyssa ulyssa merged commit 2ac71da into main Mar 24, 2024
4 checks passed
@ulyssa ulyssa deleted the new-thread-view branch March 24, 2024 02:20
@ulyssa ulyssa mentioned this pull request Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui Issues related to rendering, widgets, or general terminal-related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant