mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-07-29 12:42:46 +00:00
Fix oops, add simple UT
This commit is contained in:
parent
72ce6acf71
commit
e177e0ae73
2 changed files with 57 additions and 1 deletions
|
@ -111,7 +111,7 @@ func (d *Database) eventStateKeyNIDs(
|
|||
result[eventStateKey] = nid
|
||||
}
|
||||
// We received some nids, but are still missing some, work out which and create them
|
||||
if len(eventStateKeys) < len(result) {
|
||||
if len(eventStateKeys) > len(result) {
|
||||
for _, eventStateKey := range eventStateKeys {
|
||||
if _, ok := result[eventStateKey]; ok {
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue