dendrite/syncapi/streams
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
..
stream_accountdata.go syncapi: define specific interfaces for internal HTTP communications (#2416) 2022-05-05 09:56:03 +01:00
stream_devicelist.go Use sync API database in filterSharedUsers (#2572) 2022-07-15 16:25:26 +01:00
stream_invite.go Add possibility to ignore users (#2329) 2022-04-07 15:08:19 +01:00
stream_notificationdata.go Implement Push Notifications (#1842) 2022-03-03 11:40:53 +00:00
stream_pdu.go Fix: Correctly handle joining room not previously synced 2022-07-25 15:07:06 -07:00
stream_presence.go Silence presence logs (#2547) 2022-06-30 12:34:37 +02:00
stream_receipt.go Don't send account data or receipts for left/forgotten rooms (#2382) 2022-04-27 12:03:34 +01:00
stream_sendtodevice.go Add possibility to ignore users (#2329) 2022-04-07 15:08:19 +01:00
stream_typing.go Add possibility to ignore users (#2329) 2022-04-07 15:08:19 +01:00
streams.go Move LL cache (#2429) 2022-05-06 15:33:34 +02:00
template_stream.go Sync refactor — Part 1 (#1688) 2021-01-08 16:59:06 +00:00