From fe3f5f269bc46c03a1220a450f2742ded1b3d762 Mon Sep 17 00:00:00 2001 From: Till Faelligen <2353100+S7evinK@users.noreply.github.com> Date: Thu, 23 Feb 2023 20:37:24 +0100 Subject: [PATCH] Remove short circuit for StateKeyNIDs cache --- internal/caching/cache_eventstatekeys.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/caching/cache_eventstatekeys.go b/internal/caching/cache_eventstatekeys.go index 634af5422..51e2499d5 100644 --- a/internal/caching/cache_eventstatekeys.go +++ b/internal/caching/cache_eventstatekeys.go @@ -20,9 +20,6 @@ func (c Caches) StoreEventStateKey(eventStateKeyNID types.EventStateKeyNID, even } func (c Caches) GetEventStateKeyNID(eventStateKey string) (types.EventStateKeyNID, bool) { - if eventStateKey == "" { - return 1, true // 1 is the empty statekey as per the default value in the database - } return c.RoomServerStateKeyNIDs.Get(eventStateKey) }