You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assume that we have a PARENT event a CHILD event which is an m.replace of PARENT, sent a long time after PARENT was sent (so there are some pages between the two events).
If I have supportsThreads: true, and I'm backfilling the room via paginateEventTimeline (going in backwards direction), I hit CHILD first, going through addEventsToTimeline -> eventShouldLiveIn, leading me to...
Since I didn't hit PARENT yet (and it is not in the page that is currently being processed, i.e. events), parentEvent is not found, causing the following case to fail (I think this case is the one that should be hit, although we don't have parent so we can't recur):
Assume that we have a
PARENT
event aCHILD
event which is anm.replace
ofPARENT
, sent a long time afterPARENT
was sent (so there are some pages between the two events).If I have
supportsThreads: true
, and I'm backfilling the room viapaginateEventTimeline
(going in backwards direction), I hitCHILD
first, going throughaddEventsToTimeline
->eventShouldLiveIn
, leading me to...matrix-js-sdk/src/models/room.ts
Line 2171 in b515cdb
Since I didn't hit
PARENT
yet (and it is not in the page that is currently being processed, i.e.events
),parentEvent
is not found, causing the following case to fail (I think this case is the one that should be hit, although we don't have parent so we can't recur):matrix-js-sdk/src/models/room.ts
Lines 2174 to 2177 in b515cdb
All other branches fail, causing the function to return:
matrix-js-sdk/src/models/room.ts
Lines 2198 to 2204 in b515cdb
This omits
CHILD
from the timeline (and I think showsPARENT
instead?).(I'm probably going to just disable
supportsThreads
to workaround this for myself.)The text was updated successfully, but these errors were encountered: