mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 09:23:09 -06:00
Use reference for third party invite data
This commit is contained in:
parent
b3c9f6469d
commit
310175c71c
|
|
@ -26,7 +26,7 @@ type MemberContent struct {
|
||||||
DisplayName string `json:"displayname,omitempty"`
|
DisplayName string `json:"displayname,omitempty"`
|
||||||
AvatarURL string `json:"avatar_url,omitempty"`
|
AvatarURL string `json:"avatar_url,omitempty"`
|
||||||
Reason string `json:"reason,omitempty"`
|
Reason string `json:"reason,omitempty"`
|
||||||
ThirdPartyInvite TPInvite `json:"third_party_invite,omitempty"`
|
ThirdPartyInvite *TPInvite `json:"third_party_invite,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// TPInvite is the "Invite" structure defined at http://matrix.org/docs/spec/client_server/r0.2.0.html#m-room-member
|
// TPInvite is the "Invite" structure defined at http://matrix.org/docs/spec/client_server/r0.2.0.html#m-room-member
|
||||||
|
|
|
||||||
|
|
@ -113,7 +113,7 @@ func createInviteFrom3PIDInvite(
|
||||||
content := common.MemberContent{
|
content := common.MemberContent{
|
||||||
// TODO: Load the profile
|
// TODO: Load the profile
|
||||||
Membership: "invite",
|
Membership: "invite",
|
||||||
ThirdPartyInvite: common.TPInvite{
|
ThirdPartyInvite: &common.TPInvite{
|
||||||
Signed: inv.Signed,
|
Signed: inv.Signed,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue