Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions federation/pdu/pdu.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ func (pdu *PDU) ToClientEvent(roomVersion id.RoomVersion) (*event.Event, error)
if err != nil {
return nil, fmt.Errorf("failed to unmarshal content: %w", err)
}
if len(pdu.Unsigned) > 0 {
err = json.Unmarshal(pdu.Unsigned, &evt.Unsigned)
if err != nil {
return nil, fmt.Errorf("failed to unmarshal unsigned content: %w", err)
}
}
return evt, nil
}

Expand Down
Loading