mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-03 22:52:47 +00:00
Implement history visibility checks for /messages
This commit is contained in:
parent
c8dd962505
commit
5d9c10cb8f
3 changed files with 149 additions and 4 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue