Преглед на файлове

Add double puppet value to backfilled event wire content

Tulir Asokan преди 3 години
родител
ревизия
2bc5c32d48
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  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,