diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-08-01 14:11:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-01 14:11:00 +0100 |
commit | 05c83923e3bf24fa7def55a14ac096cdff3a3882 (patch) | |
tree | 3ee6bca7393990e75b83971a23611f6982998d59 /roomserver/storage/interface.go | |
parent | c7f7aec4d07d59120d37d5b16a900f6d608a75c4 (diff) |
Optimise checking other servers allowed to see events (#2596)
* Try optimising checking if server is allowed to see event
* Fix error
* Handle case where snapshot NID is 0
* Fix query
* Update SQL
* Clean up `CheckServerAllowedToSeeEvent`
* Not supported on SQLite
* Maybe placate the unit tests
* Review comments
Diffstat (limited to 'roomserver/storage/interface.go')
-rw-r--r-- | roomserver/storage/interface.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/roomserver/storage/interface.go b/roomserver/storage/interface.go index a98fda07..b12025c4 100644 --- a/roomserver/storage/interface.go +++ b/roomserver/storage/interface.go @@ -166,4 +166,6 @@ type Database interface { GetKnownRooms(ctx context.Context) ([]string, error) // ForgetRoom sets a flag in the membership table, that the user wishes to forget a specific room ForgetRoom(ctx context.Context, userID, roomID string, forget bool) error + + GetHistoryVisibilityState(ctx context.Context, roomInfo *types.RoomInfo, eventID string, domain string) ([]*gomatrixserverlib.Event, error) } |