Sfoglia il codice sorgente

Add double puppet value to backfilled event wire content

Tulir Asokan 3 anni fa
parent
commit
2bc5c32d48
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      historysync.go

+ 3 - 0
historysync.go

@@ -665,6 +665,9 @@ func (portal *Portal) wrapBatchEvent(info *types.MessageInfo, intent *appservice
 	if err != nil {
 		return nil, err
 	}
+	if newEventType != eventType {
+		intent.AddDoublePuppetValue(&wrappedContent)
+	}
 
 	return &event.Event{
 		Sender:    intent.UserID,