dendrite/syncapi/storage/sqlite3
Till 05cafbd197
Implement history visibility on /messages, /context, /sync (#2511)
* Add possibility to set history_visibility and user AccountType

* Add new DB queries

* Add actual history_visibility changes for /messages

* Add passing tests

* Extract check function

* Cleanup

* Cleanup

* Fix build on 386

* Move ApplyHistoryVisibilityFilter to internal

* Move queries to topology table

* Add filtering to /sync and /context
Some cleanup

* Add passing tests; Remove failing tests :(

* Re-add passing tests

* Move filtering to own function to avoid duplication

* Re-add passing test

* Use newly added GMSL HistoryVisibility

* Update gomatrixserverlib

* Set the visibility when creating events

* Default to shared history visibility

* Remove unused query

* Update history visibility checks to use gmsl
Update tests

* Remove unused statement

* Update migrations to set "correct" history visibility

* Add method to fetch the membership at a given event

* Tweaks and logging

* Use actual internal rsAPI, default to shared visibility in tests

* Revert "Move queries to topology table"

This reverts commit 4f0d41be9c194a46379796435ce73e79203edbd6.

* Remove noise/unneeded code

* More cleanup

* Try to optimize database requests

* Fix imports

* PR peview fixes/changes

* Move setting history visibility to own migration, be more restrictive

* Fix unit tests

* Lint

* Fix missing entries

* Tweaks for incremental syncs

* Adapt generic changes

Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
Co-authored-by: kegsay <kegan@matrix.org>
2022-08-11 18:23:35 +02:00
..
deltas Implement history visibility on /messages, /context, /sync (#2511) 2022-08-11 18:23:35 +02:00
account_data_table.go Try that again 2022-04-27 15:10:15 +01:00
backwards_extremities_table.go
current_room_state_table.go Fix syncapi shared users query & device lists (#2614) 2022-08-03 18:35:17 +02:00
filter_table.go Send all account data on complete sync by default 2022-04-26 16:58:20 +01:00
filtering.go
ignores_table.go
invites_table.go
memberships_table.go Implement history visibility on /messages, /context, /sync (#2511) 2022-08-11 18:23:35 +02:00
notification_data_table.go Partly fix notification counts (#2621) 2022-08-05 13:44:20 +02:00
output_room_events_table.go Implement history visibility on /messages, /context, /sync (#2511) 2022-08-11 18:23:35 +02:00
output_room_events_topology_table.go
peeks_table.go
presence_table.go Limit presence in /sync responses (#2394) 2022-04-28 15:12:40 +01:00
receipt_table.go Update database migrations, remove goose (#2264) 2022-07-25 10:39:22 +01:00
send_to_device_table.go Delete correct Send-to-Device messages (#2608) 2022-08-02 17:00:16 +02:00
stream_id_table.go Partly fix notification counts (#2621) 2022-08-05 13:44:20 +02:00
syncserver.go Implement history visibility on /messages, /context, /sync (#2511) 2022-08-11 18:23:35 +02:00