chore: remove name redundancy TransformToProtobuf -> ToProtobuf
This commit is contained in:
parent
78d4d86f68
commit
9cf61d205f
|
@ -32,7 +32,7 @@ func NewSocialLinks(links []*protobuf.SocialLink) *SocialLinks {
|
||||||
return &res
|
return &res
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *SocialLinks) TransformToProtobuf() []*protobuf.SocialLink {
|
func (s *SocialLinks) ToProtobuf() []*protobuf.SocialLink {
|
||||||
res := []*protobuf.SocialLink{}
|
res := []*protobuf.SocialLink{}
|
||||||
for _, link := range *s {
|
for _, link := range *s {
|
||||||
res = append(res, &protobuf.SocialLink{Text: link.Text, Url: link.URL})
|
res = append(res, &protobuf.SocialLink{Text: link.Text, Url: link.URL})
|
||||||
|
|
|
@ -1055,7 +1055,7 @@ func (m *Messenger) createChatIdentity(context chatContext) (*protobuf.ChatIdent
|
||||||
EnsName: "", // TODO add ENS name handling to dedicate PR
|
EnsName: "", // TODO add ENS name handling to dedicate PR
|
||||||
DisplayName: displayName,
|
DisplayName: displayName,
|
||||||
Description: bio,
|
Description: bio,
|
||||||
SocialLinks: socialLinks.TransformToProtobuf(),
|
SocialLinks: socialLinks.ToProtobuf(),
|
||||||
}
|
}
|
||||||
|
|
||||||
err = m.attachIdentityImagesToChatIdentity(context, ci)
|
err = m.attachIdentityImagesToChatIdentity(context, ci)
|
||||||
|
|
Loading…
Reference in New Issue