Jelajahi Sumber

Add double puppet value to backfilled event wire content

Tulir Asokan 3 tahun lalu
induk
melakukan
2bc5c32d48
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  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,