aboutsummaryrefslogtreecommitdiff
path: root/syncapi
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2021-07-22 16:46:36 +0100
committerGitHub <noreply@github.com>2021-07-22 16:46:36 +0100
commit75d0f009ece6676b10523a41794670c6277b0d86 (patch)
tree6d6e692434a4b123f22e7f029162a9a91765a835 /syncapi
parent39e8d1cc6f798ac842e0d8bc0ba2491e3ad3876e (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.go2
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
}