Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
Preserve content from /make_join as well as supplied content in the…
Browse files Browse the repository at this point in the history
… request (#2481)
  • Loading branch information
neilalexander authored May 23, 2022
1 parent 8a7567c commit 4472267
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion federationapi/internal/perform.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ func (r *FederationInternalAPI) performJoinUsingServer(
if content == nil {
content = map[string]interface{}{}
}
content["membership"] = "join"
_ = json.Unmarshal(respMakeJoin.JoinEvent.Content, &content)
content["membership"] = gomatrixserverlib.Join
if err = respMakeJoin.JoinEvent.SetContent(content); err != nil {
return fmt.Errorf("respMakeJoin.JoinEvent.SetContent: %w", err)
}
Expand Down

0 comments on commit 4472267

Please sign in to comment.