connector: set IsSuperGroup on dialog sync
Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
This commit is contained in:
@@ -34,6 +34,12 @@ type PortalMetadata struct {
|
||||
MessagesTTL int `json:"messages_ttl,omitempty"`
|
||||
}
|
||||
|
||||
func (pm *PortalMetadata) SetIsSuperGroup(isSupergroup bool) (changed bool) {
|
||||
changed = pm.IsSuperGroup != isSupergroup
|
||||
pm.IsSuperGroup = isSupergroup
|
||||
return changed
|
||||
}
|
||||
|
||||
type MessageMetadata struct {
|
||||
ContentHash []byte `json:"content_hash,omitempty"`
|
||||
ContentURI id.ContentURIString `json:"content_uri,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user