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

refactor: decouple reply parsing from MessageBuilder #5660

Merged
merged 3 commits into from
Oct 19, 2024

Conversation

Nerixyz
Copy link
Contributor

@Nerixyz Nerixyz commented Oct 19, 2024

The big goal is to unify parsing/building of historic messages and to refactor the message builder so it's not directly tied to IRC.
The message builder will no longer be stateful but will build an IRC message in one go (like any other message), thus reply info must be available before starting to build (decided to do that separately).

This introduces a ReplyContext which holds the thread, the parent message, and whether the message should be highlighted.

The reply "building" is still done in the builder.

@pajlada pajlada enabled auto-merge (squash) October 19, 2024 11:35
@pajlada pajlada merged commit 5c9b17c into Chatterino:master Oct 19, 2024
18 checks passed
@Nerixyz Nerixyz deleted the refactor/reply-builder branch October 19, 2024 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants