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

main
Neil Alexander 2021-07-22 16:46:36 +01:00 committed by GitHub
parent 39e8d1cc6f
commit 75d0f009ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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
}