fix: derive community.Encrypted() from permissions
This commit is contained in:
parent
11f670636b
commit
653df822da
|
@ -154,7 +154,7 @@ func (o *Community) MarshalPublicAPIJSON() ([]byte, error) {
|
|||
Position: int(c.Position),
|
||||
}
|
||||
communityItem.Categories[id] = category
|
||||
communityItem.Encrypted = o.config.CommunityDescription.Encrypted
|
||||
communityItem.Encrypted = o.Encrypted()
|
||||
}
|
||||
for id, c := range o.config.CommunityDescription.Chats {
|
||||
canPost, err := o.CanPost(o.config.MemberIdentity, id, nil)
|
||||
|
@ -272,7 +272,7 @@ func (o *Community) MarshalJSON() ([]byte, error) {
|
|||
Name: c.Name,
|
||||
Position: int(c.Position),
|
||||
}
|
||||
communityItem.Encrypted = o.config.CommunityDescription.Encrypted
|
||||
communityItem.Encrypted = o.Encrypted()
|
||||
communityItem.Categories[id] = category
|
||||
}
|
||||
for id, c := range o.config.CommunityDescription.Chats {
|
||||
|
@ -913,7 +913,7 @@ func (o *Community) Spectate() {
|
|||
}
|
||||
|
||||
func (o *Community) Encrypted() bool {
|
||||
return o.config.CommunityDescription.Encrypted
|
||||
return len(o.TokenPermissionsByType(protobuf.CommunityTokenPermission_BECOME_MEMBER)) > 0
|
||||
}
|
||||
|
||||
func (o *Community) Joined() bool {
|
||||
|
@ -1541,10 +1541,6 @@ func includes(channelIDs []string, channelID string) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
func (o *Community) updateEncrypted() {
|
||||
o.config.CommunityDescription.Encrypted = len(o.TokenPermissionsByType(protobuf.CommunityTokenPermission_BECOME_MEMBER)) > 0
|
||||
}
|
||||
|
||||
func (o *Community) UpsertTokenPermission(tokenPermission *protobuf.CommunityTokenPermission) (*CommunityChanges, error) {
|
||||
o.mutex.Lock()
|
||||
defer o.mutex.Unlock()
|
||||
|
@ -1555,7 +1551,6 @@ func (o *Community) UpsertTokenPermission(tokenPermission *protobuf.CommunityTok
|
|||
return nil, err
|
||||
}
|
||||
|
||||
o.updateEncrypted()
|
||||
o.increaseClock()
|
||||
|
||||
return changes, nil
|
||||
|
@ -1601,7 +1596,6 @@ func (o *Community) DeleteTokenPermission(permissionID string) (*CommunityChange
|
|||
return nil, err
|
||||
}
|
||||
|
||||
o.updateEncrypted()
|
||||
o.increaseClock()
|
||||
|
||||
return changes, nil
|
||||
|
|
|
@ -22,7 +22,6 @@ func createTestCommunity(identity *ecdsa.PrivateKey) (*Community, error) {
|
|||
Chats: map[string]*protobuf.CommunityChat{},
|
||||
BanList: []string{},
|
||||
Categories: map[string]*protobuf.CommunityCategory{},
|
||||
Encrypted: false,
|
||||
TokenPermissions: map[string]*protobuf.CommunityTokenPermission{},
|
||||
CommunityTokensMetadata: []*protobuf.CommunityTokenMetadata{},
|
||||
},
|
||||
|
|
|
@ -562,7 +562,7 @@ type CommunityDescription struct {
|
|||
AdminSettings *CommunityAdminSettings `protobuf:"bytes,10,opt,name=admin_settings,json=adminSettings,proto3" json:"admin_settings,omitempty"`
|
||||
IntroMessage string `protobuf:"bytes,11,opt,name=intro_message,json=introMessage,proto3" json:"intro_message,omitempty"`
|
||||
OutroMessage string `protobuf:"bytes,12,opt,name=outro_message,json=outroMessage,proto3" json:"outro_message,omitempty"`
|
||||
Encrypted bool `protobuf:"varint,13,opt,name=encrypted,proto3" json:"encrypted,omitempty"`
|
||||
Encrypted bool `protobuf:"varint,13,opt,name=encrypted,proto3" json:"encrypted,omitempty"` // Deprecated: Do not use.
|
||||
Tags []string `protobuf:"bytes,14,rep,name=tags,proto3" json:"tags,omitempty"`
|
||||
TokenPermissions map[string]*CommunityTokenPermission `protobuf:"bytes,15,rep,name=token_permissions,json=tokenPermissions,proto3" json:"token_permissions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
CommunityTokensMetadata []*CommunityTokenMetadata `protobuf:"bytes,16,rep,name=community_tokens_metadata,json=communityTokensMetadata,proto3" json:"community_tokens_metadata,omitempty"`
|
||||
|
@ -674,6 +674,7 @@ func (m *CommunityDescription) GetOutroMessage() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
// Deprecated: Do not use.
|
||||
func (m *CommunityDescription) GetEncrypted() bool {
|
||||
if m != nil {
|
||||
return m.Encrypted
|
||||
|
@ -1671,13 +1672,13 @@ func init() {
|
|||
}
|
||||
|
||||
var fileDescriptor_f937943d74c1cd8b = []byte{
|
||||
// 2063 bytes of a gzipped FileDescriptorProto
|
||||
// 2066 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0x41, 0x73, 0x1b, 0x49,
|
||||
0xf5, 0xcf, 0x68, 0x64, 0x5b, 0x7a, 0xb2, 0x6c, 0xb9, 0x93, 0xd8, 0x13, 0x27, 0xd9, 0x28, 0xf3,
|
||||
0xff, 0x53, 0x78, 0x43, 0xa1, 0xec, 0x1a, 0x28, 0x52, 0xbb, 0xb0, 0xbb, 0x8a, 0x3c, 0x64, 0xb5,
|
||||
0x89, 0x46, 0xde, 0x96, 0xbc, 0x81, 0x2d, 0x60, 0xaa, 0x3d, 0xd3, 0xb6, 0xbb, 0x22, 0xcd, 0x88,
|
||||
0xe9, 0x96, 0x0b, 0x71, 0xe0, 0x00, 0x7c, 0x02, 0xf8, 0x00, 0x1c, 0xb8, 0xc3, 0x47, 0xe0, 0x40,
|
||||
0x15, 0x47, 0xee, 0xdc, 0x38, 0x72, 0xe4, 0xc4, 0x99, 0xea, 0xee, 0x99, 0xd1, 0x8c, 0x24, 0xc7,
|
||||
0x15, 0x47, 0xee, 0xdc, 0x38, 0x72, 0xe4, 0xcc, 0x89, 0xea, 0xee, 0x99, 0xd1, 0x8c, 0x24, 0xc7,
|
||||
0x59, 0x16, 0xaa, 0x38, 0x69, 0xde, 0xeb, 0xd7, 0xaf, 0xdf, 0x7b, 0xfd, 0xeb, 0xd7, 0xbf, 0x16,
|
||||
0xec, 0xf8, 0xd1, 0x78, 0x3c, 0x0d, 0x99, 0x60, 0x94, 0xb7, 0x26, 0x71, 0x24, 0x22, 0x54, 0x51,
|
||||
0x3f, 0xa7, 0xd3, 0xb3, 0xfd, 0x9b, 0xfe, 0x05, 0x11, 0x1e, 0x0b, 0x68, 0x28, 0x98, 0x98, 0xe9,
|
||||
|
@ -1747,58 +1748,59 @@ var fileDescriptor_f937943d74c1cd8b = []byte{
|
|||
0xc7, 0xa9, 0x10, 0x2c, 0x3c, 0xe7, 0x16, 0xa8, 0xfa, 0x34, 0x57, 0x44, 0xd3, 0x96, 0x86, 0x83,
|
||||
0xc4, 0x0e, 0xd7, 0x49, 0x5e, 0x44, 0xff, 0x07, 0x75, 0x16, 0x8a, 0x38, 0xf2, 0xc6, 0x94, 0x73,
|
||||
0x79, 0x05, 0xd6, 0xd4, 0xf1, 0xdc, 0x54, 0xca, 0x9e, 0xd6, 0x49, 0xa3, 0x68, 0x9a, 0x37, 0xda,
|
||||
0xd4, 0x46, 0x4a, 0x99, 0x1a, 0xdd, 0x83, 0x2a, 0x0d, 0xfd, 0x78, 0x36, 0x11, 0x34, 0xb0, 0xea,
|
||||
0xfa, 0xd0, 0x64, 0x0a, 0xd9, 0xe4, 0x04, 0x39, 0xe7, 0xd6, 0x96, 0xaa, 0xa8, 0xfa, 0x46, 0x04,
|
||||
0x76, 0xf4, 0x11, 0xce, 0xc3, 0x64, 0x5b, 0x55, 0xf5, 0x9b, 0xd7, 0x54, 0x75, 0xa1, 0x31, 0x24,
|
||||
0xb5, 0x6d, 0x88, 0x05, 0x35, 0xfa, 0x21, 0xdc, 0x99, 0xd3, 0x46, 0x35, 0xca, 0xbd, 0x71, 0x42,
|
||||
0x21, 0xac, 0x86, 0x5a, 0xaa, 0x79, 0x1d, 0xd5, 0xc0, 0x7b, 0x7e, 0x41, 0xcf, 0x33, 0x06, 0xf3,
|
||||
0x0e, 0xdc, 0x22, 0xbe, 0x50, 0xdb, 0xa7, 0x31, 0xef, 0x29, 0x9e, 0x66, 0xed, 0xa8, 0xbd, 0x43,
|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89, 0xd7,
|
||||
0x70, 0x26, 0xff, 0x97, 0x30, 0x6d, 0x07, 0xb0, 0xb3, 0x04, 0xa2, 0xc5, 0x40, 0x8d, 0xa5, 0x40,
|
||||
0x53, 0x32, 0x55, 0x2a, 0x12, 0xec, 0x2c, 0x78, 0xb3, 0x18, 0xbc, 0xfd, 0x6b, 0x03, 0xb6, 0x17,
|
||||
0xde, 0x5e, 0x92, 0xfa, 0x26, 0x84, 0x31, 0x59, 0x20, 0x15, 0x65, 0x8f, 0xe3, 0xec, 0x3c, 0x24,
|
||||
0x62, 0x1a, 0xd3, 0xe4, 0x89, 0x39, 0x57, 0x48, 0x72, 0xe6, 0x5f, 0x10, 0xa6, 0xc9, 0x99, 0xa9,
|
||||
0xc9, 0x99, 0x52, 0x48, 0x52, 0xf1, 0x08, 0x1a, 0x8c, 0xb7, 0x59, 0x1c, 0xc4, 0xd1, 0x24, 0x21,
|
||||
0x58, 0xaa, 0xce, 0x15, 0xbc, 0xa4, 0xb7, 0xff, 0x61, 0xe4, 0x70, 0x8b, 0xe9, 0x4f, 0xa6, 0x94,
|
||||
0x8b, 0x61, 0xf4, 0x49, 0xc4, 0xae, 0xba, 0xb1, 0x13, 0x1e, 0x9f, 0xcb, 0x5c, 0xf2, 0x78, 0x57,
|
||||
0x26, 0x7f, 0xe5, 0xc3, 0x77, 0xf1, 0x45, 0x5d, 0x5e, 0x7e, 0x51, 0x3f, 0x84, 0xcd, 0x80, 0xf1,
|
||||
0xc9, 0x88, 0xcc, 0xb4, 0xeb, 0xb5, 0xe4, 0xe9, 0xa4, 0x75, 0xca, 0xfd, 0xf7, 0x56, 0xbd, 0x6e,
|
||||
0xd7, 0xaf, 0x79, 0xdd, 0x2e, 0xbf, 0x6c, 0xed, 0xdf, 0x1a, 0x70, 0x2f, 0x4b, 0xd9, 0x09, 0x98,
|
||||
0x18, 0x5c, 0x90, 0x98, 0x06, 0x73, 0xbe, 0xbd, 0x3a, 0xf1, 0xc5, 0x24, 0x4a, 0xcb, 0x49, 0xac,
|
||||
0x8c, 0xd0, 0xfc, 0xe2, 0x11, 0xfe, 0x3e, 0x1f, 0x61, 0x87, 0x84, 0x3e, 0x1d, 0xfd, 0x4f, 0x6f,
|
||||
0x8d, 0xfd, 0x77, 0x03, 0xde, 0x5a, 0x8d, 0x22, 0x4c, 0xf9, 0x24, 0x0a, 0x39, 0xbd, 0x22, 0xe4,
|
||||
0xef, 0x40, 0x35, 0x5b, 0xea, 0x35, 0x1d, 0x28, 0x77, 0x1f, 0xe3, 0xf9, 0x04, 0x79, 0xda, 0xe4,
|
||||
0x4b, 0x4f, 0xd1, 0x00, 0x53, 0x01, 0x3c, 0x93, 0xe5, 0x7a, 0xe7, 0x31, 0x09, 0x45, 0x92, 0x91,
|
||||
0x16, 0x96, 0xd2, 0x5d, 0x5b, 0x4e, 0xf7, 0x3e, 0x80, 0x66, 0x48, 0xde, 0x34, 0x66, 0xc9, 0xeb,
|
||||
0xb9, 0xaa, 0x35, 0x27, 0x31, 0xb3, 0x31, 0xec, 0x2d, 0x67, 0xfa, 0x82, 0x92, 0x4b, 0xfa, 0x6f,
|
||||
0xe3, 0xc6, 0xfe, 0x3e, 0x3c, 0xcc, 0x75, 0x27, 0x7d, 0x01, 0x2c, 0x92, 0xb1, 0x2b, 0xbc, 0x17,
|
||||
0xa3, 0x2d, 0x2d, 0x46, 0xfb, 0x47, 0x03, 0x6a, 0x2f, 0xc9, 0xab, 0x69, 0xca, 0x9c, 0x1a, 0x60,
|
||||
0x72, 0x76, 0x9e, 0xfc, 0xa5, 0x25, 0x3f, 0x65, 0x9f, 0x11, 0x6c, 0x4c, 0xb9, 0x20, 0xe3, 0x89,
|
||||
0x9a, 0x5f, 0xc6, 0x73, 0x85, 0x5c, 0x54, 0x44, 0x13, 0xe6, 0xab, 0xf2, 0x6e, 0x62, 0x2d, 0xa8,
|
||||
0x07, 0x3b, 0x99, 0x8d, 0x22, 0x92, 0xe2, 0x25, 0x15, 0xf5, 0x48, 0x10, 0xb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 0xd0, 0x73, 0xa8, 0x24, 0x0f, 0x94,
|
||||
0x94, 0xee, 0x3c, 0x7e, 0x5d, 0x8c, 0x6a, 0x52, 0x2b, 0x11, 0x12, 0xe6, 0x93, 0x39, 0xd8, 0x3f,
|
||||
0x83, 0x7a, 0x61, 0x68, 0x05, 0x91, 0xf8, 0xb0, 0x48, 0x24, 0xde, 0xbe, 0x76, 0xb1, 0xac, 0x2a,
|
||||
0x73, 0x62, 0xf1, 0xb4, 0xfe, 0x79, 0xad, 0xf5, 0xf8, 0xfd, 0x74, 0xe6, 0xe9, 0xba, 0xfa, 0xfa,
|
||||
0xc6, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0x85, 0xa5, 0xb4, 0x9f, 0xaa, 0x16, 0x00, 0x00,
|
||||
0xd4, 0x46, 0x4a, 0x99, 0x1a, 0x35, 0xa1, 0x4a, 0x43, 0x3f, 0x9e, 0x4d, 0x04, 0x0d, 0xac, 0xba,
|
||||
0x3c, 0x34, 0x8a, 0xc4, 0xcc, 0x95, 0xb2, 0xd1, 0x09, 0x72, 0xce, 0xad, 0x2d, 0x55, 0x55, 0xf5,
|
||||
0x8d, 0x08, 0xec, 0xe8, 0x63, 0x9c, 0x87, 0xca, 0xb6, 0xaa, 0xec, 0x37, 0xaf, 0xa9, 0xec, 0x42,
|
||||
0x73, 0x48, 0xea, 0xdb, 0x10, 0x0b, 0x6a, 0xf4, 0x43, 0xb8, 0x33, 0xa7, 0x8e, 0x6a, 0x94, 0x7b,
|
||||
0xe3, 0x84, 0x46, 0x58, 0x0d, 0xb5, 0x54, 0xf3, 0x3a, 0xba, 0x81, 0xf7, 0xfc, 0x82, 0x9e, 0x67,
|
||||
0x2c, 0xe6, 0x1d, 0xb8, 0x45, 0x7c, 0xa1, 0xb6, 0x50, 0xe3, 0xde, 0x53, 0x5c, 0xcd, 0xda, 0x51,
|
||||
0xfb, 0x87, 0xf4, 0x58, 0x72, 0x40, 0x3a, 0x72, 0x64, 0xff, 0x04, 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0x11, 0xfe, 0x3e, 0x1f, 0x61, 0x87, 0x84, 0x3e, 0x1d,
|
||||
0xfd, 0x4f, 0x6f, 0x8d, 0xfd, 0x77, 0x03, 0xde, 0x5a, 0x8d, 0x22, 0x4c, 0xf9, 0x24, 0x0a, 0x39,
|
||||
0xbd, 0x22, 0xe4, 0xef, 0x40, 0x35, 0x5b, 0xea, 0x35, 0x1d, 0x28, 0x77, 0x1f, 0xe3, 0xf9, 0x04,
|
||||
0x79, 0xda, 0xe4, 0x6b, 0x4f, 0x51, 0x01, 0x53, 0x01, 0x3c, 0x93, 0xe5, 0x7a, 0xe7, 0x31, 0x09,
|
||||
0x45, 0x92, 0x91, 0x16, 0x96, 0xd2, 0x5d, 0x5b, 0x4e, 0xf7, 0x3e, 0x80, 0x66, 0x49, 0xde, 0x34,
|
||||
0x66, 0xc9, 0x0b, 0xba, 0xaa, 0x35, 0x27, 0x31, 0xb3, 0x31, 0xec, 0x2d, 0x67, 0xfa, 0x82, 0x92,
|
||||
0x4b, 0xfa, 0x6f, 0xe3, 0xc6, 0xfe, 0x3e, 0x3c, 0xcc, 0x75, 0x27, 0x7d, 0x01, 0x2c, 0x12, 0xb2,
|
||||
0x2b, 0xbc, 0x17, 0xa3, 0x2d, 0x2d, 0x46, 0xfb, 0x47, 0x03, 0x6a, 0x2f, 0xc9, 0xab, 0x69, 0xca,
|
||||
0x9e, 0x1a, 0x60, 0x72, 0x76, 0x9e, 0xfc, 0xad, 0x25, 0x3f, 0x65, 0x9f, 0x11, 0x6c, 0x4c, 0xb9,
|
||||
0x20, 0xe3, 0x89, 0x9a, 0x5f, 0xc6, 0x73, 0x85, 0x5c, 0x54, 0x44, 0x13, 0xe6, 0xab, 0xf2, 0x6e,
|
||||
0x62, 0x2d, 0xa8, 0x47, 0x3b, 0x99, 0x8d, 0x22, 0x92, 0xe2, 0x25, 0x15, 0xf5, 0x48, 0x10, 0xb0,
|
||||
0xf0, 0x3c, 0x29, 0x6d, 0x2a, 0xca, 0x6e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0xee, 0x3c, 0x7e, 0x5d, 0x8c, 0x6a, 0x52, 0x2b, 0x11, 0x12, 0xe6, 0x93,
|
||||
0x39, 0xd8, 0x3f, 0x83, 0x7a, 0x61, 0x68, 0x05, 0x91, 0xf8, 0xb0, 0x48, 0x24, 0xde, 0xbe, 0x76,
|
||||
0xb1, 0xac, 0x2a, 0x73, 0x62, 0xf1, 0xb4, 0xfe, 0x79, 0xad, 0xf5, 0xf8, 0xfd, 0x74, 0xe6, 0xe9,
|
||||
0xba, 0xfa, 0xfa, 0xc6, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0xba, 0xde, 0x8a, 0xe5, 0xae, 0x16,
|
||||
0x00, 0x00,
|
||||
}
|
||||
|
|
|
@ -93,7 +93,7 @@ message CommunityDescription {
|
|||
CommunityAdminSettings admin_settings = 10;
|
||||
string intro_message = 11;
|
||||
string outro_message = 12;
|
||||
bool encrypted = 13;
|
||||
bool encrypted = 13 [deprecated=true];
|
||||
repeated string tags = 14;
|
||||
map<string, CommunityTokenPermission> token_permissions = 15;
|
||||
repeated CommunityTokenMetadata community_tokens_metadata = 16;
|
||||
|
|
|
@ -128,7 +128,6 @@ func (c *CreateCommunity) ToCommunityDescription() (*protobuf.CommunityDescripti
|
|||
},
|
||||
IntroMessage: c.IntroMessage,
|
||||
OutroMessage: c.OutroMessage,
|
||||
Encrypted: false,
|
||||
Tags: c.Tags,
|
||||
}
|
||||
return description, nil
|
||||
|
|
Loading…
Reference in New Issue