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

Avoid crashes with deep threads #103

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

CylonicRaider
Copy link
Contributor

Although the Euphoria-side thread depth limit has fallen, React still starts behaving badly when too deeply nested messages appear, leading to looping crashes in certain situations (e.g. showAllReplies enabled or a very deep thread the user posted in), potentially rendering Euphoria entirely unusable.
This avoids the problem by forcing a collapse (disregarding showAllReplies) at a (large) depth as a “safety net” against the crashes.
The user can still risk seeing the remainder of the thread by expanding the collapsed reply section.

The previous version inadvertently turned collapsing into an
all-or-nothing behavior.
Resets the standard message collapsing value when a depth boundary
is encountered, makes the UI work in all combinations, and fixes
some some issues pointed out by the linter.
Apparently, the combination :not(collapsible).expanded is not meant to
be there.
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.

1 participant