diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2021-07-22 16:46:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-22 16:46:36 +0100 |
commit | 75d0f009ece6676b10523a41794670c6277b0d86 (patch) | |
tree | 6d6e692434a4b123f22e7f029162a9a91765a835 /syncapi | |
parent | 39e8d1cc6f798ac842e0d8bc0ba2491e3ad3876e (diff) |
Don't set prev state when it is the same as the event it replaces (#1936)
Diffstat (limited to 'syncapi')
-rw-r--r-- | syncapi/consumers/roomserver.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/syncapi/consumers/roomserver.go b/syncapi/consumers/roomserver.go index a6aeee3a..0d6f528a 100644 --- a/syncapi/consumers/roomserver.go +++ b/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 } |