From 75d0f009ece6676b10523a41794670c6277b0d86 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Thu, 22 Jul 2021 16:46:36 +0100 Subject: [PATCH] Don't set prev state when it is the same as the event it replaces (#1936) --- syncapi/consumers/roomserver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncapi/consumers/roomserver.go b/syncapi/consumers/roomserver.go index a6aeee3a8..0d6f528ad 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 }