From 4b34a51a2b28d3c473ef67062856768ab09e8831 Mon Sep 17 00:00:00 2001 From: Till Faelligen <2353100+S7evinK@users.noreply.github.com> Date: Thu, 13 Oct 2022 16:13:57 +0200 Subject: [PATCH] Fix oops --- roomserver/internal/helpers/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roomserver/internal/helpers/auth.go b/roomserver/internal/helpers/auth.go index dce8b778e..03d8bca0b 100644 --- a/roomserver/internal/helpers/auth.go +++ b/roomserver/internal/helpers/auth.go @@ -228,7 +228,7 @@ func loadAuthEvents( } roomID := "" for _, ev := range result.events { - if ev.RoomID() != "" { + if roomID == "" { roomID = ev.RoomID() } if ev.RoomID() != roomID {