Implement backfill over federation #846

Closed
Nyaaori wants to merge 16 commits from Nyaaori/federation-backfill into next

16 commits

Author SHA1 Message Date
Nyaaori
c249fd7d4d
chore: code cleanup 2022-12-21 10:46:13 +01:00
Andriy Kushnir (Orhideous)
330e68eb93
refactor: Fixed logical condition for evil events 2022-12-21 10:45:26 +01:00
Andriy Kushnir (Orhideous)
1fabc3cd69
refactor: Added tests to backfill 2022-12-21 10:45:26 +01:00
Andriy Kushnir (Orhideous)
b9c2bb38db
refactor: Rewrite backfill algorithm according to specification in more readable form 2022-12-21 10:45:26 +01:00
Andriy Kushnir (Orhideous)
d8ee8cd0ef
refactor: Pull up invariants from the loop 2022-12-21 10:45:25 +01:00
Andriy Kushnir (Orhideous)
2717bdcf2e
refactor: Take away some methods from public 2022-12-21 10:45:25 +01:00
Andriy Kushnir (Orhideous)
98e24722ad
refactor: Use same order as in trait 2022-12-21 10:45:25 +01:00
Andriy Kushnir (Orhideous)
e71ad56e68
refactor: Do not extract members for room each time 2022-12-21 10:45:24 +01:00
Andriy Kushnir (Orhideous)
5987452cfc
refactor: Replace imperative style with short-circuit .any() 2022-12-21 10:45:24 +01:00
Andriy Kushnir (Orhideous)
e3dcb668cf
refactor: Replace re-serialization with plain coercion 2022-12-21 10:45:24 +01:00
Andriy Kushnir (Orhideous)
f814e8e5cc
refactor: Replace specialized interface for user's membership with more generic one in state accessor 2022-12-21 10:45:24 +01:00
Nyaaori
898e4d24d9
fix: Default to Shared history visibility for s2s permissions, per spec 2022-12-21 10:45:23 +01:00
Nyaaori
5d7f4602b2
fix: Proper S2S Backfill visibility handling 2022-12-21 10:45:23 +01:00
Nyaaori
c4bd0a9f2c
fix: Add backfill ACL check 2022-12-21 10:45:23 +01:00
Andrei Vasiliu
711e03b799
feat: Implement backfill joined/invited checks for private history
Co-authored-by: Nyaaori <+@nyaaori.cat>
2022-12-21 10:45:22 +01:00
Andrei Vasiliu
ed64b528c1
feat: Add federation backfill and event visibility
Co-authored-by: Nyaaori <+@nyaaori.cat>
2022-12-21 10:45:22 +01:00