mirror of
https://github.com/matrix-org/dendrite.git
synced 2024-11-22 14:21:55 -06:00
Don't set prev state when it is the same as the event it replaces (#1936)
This commit is contained in:
parent
39e8d1cc6f
commit
75d0f009ec
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue