Implement history visibility checks for /messages

This commit is contained in:
Kegan Dougal 2020-09-11 17:51:49 +01:00
parent c8dd962505
commit 5d9c10cb8f
3 changed files with 149 additions and 4 deletions

View file

@ -26,7 +26,8 @@ const (
// TODO: This logic should live in gomatrixserverlib
// IsServerAllowed returns true if the server is allowed to see events in the room
// at this particular state. This function implements https://matrix.org/docs/spec/client_server/r0.6.0#id87
// at this particular state. This function implements a server-based version of
// https://matrix.org/docs/spec/client_server/r0.6.0#id87
func IsServerAllowed(
serverName gomatrixserverlib.ServerName,
serverCurrentlyInRoom bool,