Add support for v2 groups on incoming
This commit is contained in:
parent
b5802b75e1
commit
3ca2d6f6c9
1 changed files with 16 additions and 5 deletions
|
@ -47,10 +47,21 @@ type DataMessage struct {
|
||||||
Body string `json:",omitempty"`
|
Body string `json:",omitempty"`
|
||||||
ExpiresInSeconds int64 `json:",omitempty"`
|
ExpiresInSeconds int64 `json:",omitempty"`
|
||||||
GroupInfo IncomingGroupInfo `json:"group,omitempty"`
|
GroupInfo IncomingGroupInfo `json:"group,omitempty"`
|
||||||
|
GroupV2 IncomingGroupV2Info `json:"groupV2,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// IncomingGroupInfo is information about a particular group
|
// IncomingGroupInfo is information about a particular legacy group
|
||||||
type IncomingGroupInfo struct {
|
type IncomingGroupInfo struct {
|
||||||
GroupID string `json:",omitempty"`
|
GroupID string `json:",omitempty"`
|
||||||
Type string `json:",omitempty"`
|
Type string `json:",omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// IncomingGroupV2Info is a stripped down copy of v1.JsonGroupV2Info because v0 can't depend on v1
|
||||||
|
type IncomingGroupV2Info struct {
|
||||||
|
Avatar string `json:"avatar,omitempty" yaml:"avatar,omitempty"` // path to the group's avatar on local disk, if available
|
||||||
|
ID string `json:"id,omitempty" yaml:"id,omitempty"`
|
||||||
|
InviteLink string `json:"inviteLink,omitempty" yaml:"inviteLink,omitempty"` // the signal.group link, if applicable
|
||||||
|
Revision int32 `json:"revision,omitempty" yaml:"revision,omitempty"`
|
||||||
|
Timer int32 `json:"timer,omitempty" yaml:"timer,omitempty"`
|
||||||
|
Title string `json:"title,omitempty" yaml:"title,omitempty"`
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue