mirror of
https://github.com/status-im/status-go.git
synced 2025-01-12 15:45:07 +00:00
fix: community encryption was not being marshalled
This commit is contained in:
parent
b9d6e6d8c8
commit
d4d35710be
@ -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 {
|
||||
|
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user