fix(community-edit): Save permissions when community edited (#2720)

Part of: https://github.com/status-im/status-desktop/issues/6073
This commit is contained in:
Boris Melnik 2022-06-21 20:43:49 +03:00 committed by GitHub
parent 1c77f2ed6e
commit 8063152657
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -746,6 +746,7 @@ func (o *Community) Edit(description *protobuf.CommunityDescription) {
if o.config.CommunityDescription.AdminSettings == nil {
o.config.CommunityDescription.AdminSettings = &protobuf.CommunityAdminSettings{}
}
o.config.CommunityDescription.Permissions = description.Permissions
o.config.CommunityDescription.AdminSettings.PinMessageAllMembersEnabled = description.AdminSettings.PinMessageAllMembersEnabled
o.increaseClock()
}