diff --git a/protocol/communities/community.go b/protocol/communities/community.go index ccbceea2f..97e504e7d 100644 --- a/protocol/communities/community.go +++ b/protocol/communities/community.go @@ -224,6 +224,7 @@ func (o *Community) MarshalJSON() ([]byte, error) { IsMember: o.isMember(), Muted: o.config.Muted, Tags: o.Tags(), + Encrypted: o.Encrypted(), } if o.config.CommunityDescription != nil { for id, c := range o.config.CommunityDescription.Categories { diff --git a/services/chat/api.go b/services/chat/api.go index 2679158fd..0008c18ba 100644 --- a/services/chat/api.go +++ b/services/chat/api.go @@ -98,6 +98,7 @@ type ChannelGroup struct { CanManageUsers bool `json:"canManageUsers"` Muted bool `json:"muted"` BanList []string `json:"banList"` + Encrypted bool `json:"encrypted"` } func NewAPI(service *Service) *API { @@ -186,6 +187,7 @@ func (api *API) GetChats(ctx context.Context) (map[string]ChannelGroup, error) { CanManageUsers: community.CanManageUsers(community.MemberIdentity()), Muted: community.Muted(), BanList: community.Description().BanList, + Encrypted: community.Encrypted(), } for t, i := range community.Images() {