diff --git a/indexedDb/implementation.go b/indexedDb/implementation.go
index 47ebdf700b70453a53b4383584752331b4d21243..31fe6329827863293f60e301c9f9f3925dbfdc2d 100644
--- a/indexedDb/implementation.go
+++ b/indexedDb/implementation.go
@@ -168,7 +168,9 @@ func (w *wasmModel) ReceiveMessage(channelID *id.ID,
 		jww.DEBUG.Printf("non-empty messageID detected")
 		uuid, err := w.msgIDLookup(messageID)
 		if err == nil && uuid != 0 {
-			jww.WARN.Printf("MessageID found: %d", uuid)
+			jww.WARN.Printf("found MessageID, will upsert: %d",
+				uuid)
+			msgToInsert.ID = uuid
 		}
 	}