Don't set prev state when it is the same as the event it replaces (#1936)
Don't set prev state when it is the same as the event it replaces (#1936)


matrix-org/dendrite,matrix-org/dendrite,matrix-org/dendrite,matrix-org/dendrite