From 80652422c3fb38c191d3fcbc722c89c2a413806b Mon Sep 17 00:00:00 2001 From: Devon Hudson Date: Tue, 13 Jun 2023 10:22:24 +0100 Subject: [PATCH] Return without error when no room info available --- roomserver/storage/shared/storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roomserver/storage/shared/storage.go b/roomserver/storage/shared/storage.go index d05c714f2..9691c5c73 100644 --- a/roomserver/storage/shared/storage.go +++ b/roomserver/storage/shared/storage.go @@ -712,7 +712,7 @@ func (d *Database) GetRoomVersion(ctx context.Context, roomID string) (gomatrixs return "", err } if roomInfo == nil { - return "", fmt.Errorf("no room info available for %s", roomID) + return "", nil } return roomInfo.RoomVersion, nil }