Don't set prev state when it is the same as the event it replaces
MODIFY
syncapi/consumers/roomserver.go
syncapi/consumers/roomserver.go
@@ -378,7 +378,7 @@ func (s *OutputRoomEventConsumer) updateStateEvent(event *gomatrixserverlib.Head
return event, err
}
- if prevEvent == nil {
+ if prevEvent == nil || prevEvent.EventID() == event.EventID() {
return event, nil
}

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