Explorar el Código

Add double puppet value to backfilled event wire content

Tulir Asokan hace 3 años
padre
commit
2bc5c32d48
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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,