Remove short circuit for StateKeyNIDs cache

This commit is contained in:
Till Faelligen 2023-02-23 20:37:24 +01:00
parent 445f6ae93a
commit fe3f5f269b
No known key found for this signature in database
GPG key ID: 3DF82D8AB9211D4E

View file

@ -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)
}