dendrite/syncapi/storage/shared
texuf 9539de714f Fix: Correctly handle joining room not previously synced
Mostly making this PR to see if I can flush out the intended behavior. Seems like the intended method would be to first `peek` the room, but peek is currently unimplemented in dendrite. What do you guys think?

Test Plan:
register new account bob
bob creates public, shared history room
bob sends a “hello world” message to the room
register new account jane
jane joins bobs room via room id

ISSUE:
Jane only sees her new membership event, doesn’t sync the name of the room, or bobs “hello world” message

NOTE: this happens any time jane syncs something after bob sends "hello world"
 then joins the room. All that's needed is a more recent FROM offset for Jane
to miss important information about the room

FIX
If a join event happened during a current sync delta, reset the to parameter to sync the entire room to Jane

Signed-off-by: `Austin Ellis <austin@hntlabs.com>`
2022-07-25 15:07:06 -07:00
..
syncserver.go Fix: Correctly handle joining room not previously synced 2022-07-25 15:07:06 -07:00