7941a70fa8
This caused `prev_state_ids` to be incorrect if the state event was not replacing an existing state entry.
This caused `prev_state_ids` to be incorrect if the state event was not replacing an existing state entry.