aboutsummaryrefslogtreecommitdiff
path: root/roomserver/auth/auth.go
diff options
context:
space:
mode:
Diffstat (limited to 'roomserver/auth/auth.go')
-rw-r--r--roomserver/auth/auth.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/roomserver/auth/auth.go b/roomserver/auth/auth.go
index d6c10cf9..df95851e 100644
--- a/roomserver/auth/auth.go
+++ b/roomserver/auth/auth.go
@@ -30,10 +30,6 @@ func IsServerAllowed(
serverCurrentlyInRoom bool,
authEvents []gomatrixserverlib.PDU,
) bool {
- // In practice should not happen, but avoids unneeded CPU cycles
- if serverName == "" || len(authEvents) == 0 {
- return false
- }
historyVisibility := HistoryVisibilityForRoom(authEvents)
// 1. If the history_visibility was set to world_readable, allow.