dendrite/syncapi/streams
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
..
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 Implement history visibility on /messages, /context, /sync (#2511) 2022-08-11 18:23:35 +02: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 Send-to-device/sync tweaks (#2630) 2022-08-09 10:40:46 +02:00
stream_typing.go Add possibility to ignore users (#2329) 2022-04-07 15:08:19 +01:00
streams.go Invalidate lazyLoadCache if we're doing an initial sync (#2623) 2022-08-05 14:27:27 +02:00
template_stream.go Sync refactor — Part 1 (#1688) 2021-01-08 16:59:06 +00:00