From 9bb33c4d24a291f1f8a77b55069bc28089d0cd3d Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Wed, 12 Feb 2020 12:11:33 +0000 Subject: [PATCH] Allow empty last sent ID for the first event --- federationsender/storage/postgres/storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/federationsender/storage/postgres/storage.go b/federationsender/storage/postgres/storage.go index c60f6dc5c..d97b5d296 100644 --- a/federationsender/storage/postgres/storage.go +++ b/federationsender/storage/postgres/storage.go @@ -87,7 +87,7 @@ func (d *Database) UpdateRoom( return nil } - if lastSentEventID != oldEventID { + if lastSentEventID != "" && lastSentEventID != oldEventID { return types.EventIDMismatchError{ DatabaseID: lastSentEventID, RoomServerID: oldEventID, }