mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 09:23:09 -06:00
Fix wrong removal in latest commit
This commit is contained in:
parent
790a5634f4
commit
37a9db5e6a
|
|
@ -100,6 +100,11 @@ func (d *SyncServerDatabase) WriteEvent(
|
||||||
}
|
}
|
||||||
streamPos = types.StreamPosition(pos)
|
streamPos = types.StreamPosition(pos)
|
||||||
|
|
||||||
|
if len(addStateEvents) == 0 && len(removeStateEventIDs) == 0 {
|
||||||
|
// Nothing to do, the event may have just been a message event.
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
return d.updateRoomState(txn, removeStateEventIDs, addStateEvents, streamPos)
|
return d.updateRoomState(txn, removeStateEventIDs, addStateEvents, streamPos)
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue