matrix-js-sdk
71f9b25d - Ensure we do not add relations to the wrong timeline (#3427)

Commit
2 years ago
Ensure we do not add relations to the wrong timeline (#3427) * Do not assume that a relation lives in main timeline if we do not know its parent * For pagination, partition relations with unknown parents into a separate bucket And only add them to relation map, no timelines * Make addLiveEvents async and have it fetch parent events of unknown relations to not insert into the wrong timeline * Fix tests not awaiting addLIveEvents * Fix handling of thread roots in eventShouldLiveIn * Fix types * Fix tests * Fix import * Stash thread ID of relations in unsigned to be stashed in sync accumulator * Persist after processing * Revert "Persist after processing" This reverts commit 05ed6409b35f5e9bea3b699d0abcaac3d02588c5. * Update unsigned field name to match MSC4023 * Persist after processing to store thread id in unsigned sync accumulator * Add test * Fix replayEvents getting doubled up due to Thread::addEvents being called in createThread and separately * Fix test * Switch to using UnstableValue * Add comment * Iterate
Author
Parents
Loading