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
Change OOO so that MELS generation will continue over hidden events #1308
Conversation
this fixes the scenario of N Member events, then an invisible event e.g. (m.room.aliases) then more Member events. Pre hide-join-parts this is how it worked. Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
But what happens if the RM is the invisible event? By the looks of it, the RM won't be considered "in" the MELS and it won't get rendered. |
This was the case and worse from what I can tell pre-hide-join-parts but I'll look into getting around that: |
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
@lukebarnard1 should be better now |
Ah but what if the hidden event is not a membership event or needs a date separator? Putting the continue before that conditional break feels like it would break things. |
if it needs a date separator then so will the next one or even if it doesn't, its not being shown in the timeline so why does it matter it needs a date sep? |
fwiw, my reasoning on the code we need to mark RM-in-MELS iff
so if the |
I could reverse the logic, only break if the existing conditions hold and |
Will there be a next one? I think your reasoning is correct, but for this particular edge case, e.g. a membership event or an event that needs a date separator (i.e. true for the Oh but we don't want it to split it in two. Then it's fine. It's very very annoying how hard it is to reason about this code, I regret ever writing it like this 😇 |
Fixes vector-im/element-web#4716
this fixes the scenario of N Member events, then an invisible event e.g. (m.room.aliases) then more Member events not forming a MELS or forming one on either side of the invisible event.. Pre hide-join-parts this is how it worked.
Signed-off-by: Michael Telatynski 7t3chguy@gmail.com