Skip to content

Conversation

@trevarj
Copy link
Contributor

@trevarj trevarj commented Jul 1, 2020

When multiple users join/part from a channel at the same timestamp, the line gets modified. This wasn't invalidating the height calulation so it was causing an overflow if many people join/part or if your screen is small and it needs to wrap that line after modification.

Ugh, basically what I did for a fix is just add a way to force invalidating the height of the line when it's modified. Didn't think about this when I added LineDataCache for height calculation.

Closes #227

When multiple users join/part from a channel at the same
timestamp, the line gets modified. This wasn't invalidating the height
calulation so it was causing an overflow if many people join/part or if
your screen is small and it needs to wrap that line after modification.
@osa1
Copy link
Owner

osa1 commented Jul 1, 2020

LGTM, thanks @trevarj ! Added one inline question.

@osa1 osa1 merged commit f72227b into osa1:master Jul 2, 2020
@trevarj trevarj deleted the join-part-panic branch July 2, 2020 04:48
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.

Join/Part messages overflow

2 participants