Browse Source

Add double puppet value to backfilled event wire content

Tulir Asokan 3 years ago
parent
commit
2bc5c32d48
1 changed files with 3 additions and 0 deletions
  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,